Errors in Python
Errors in Python
in Python
Example:
2.
Indentation def greet():
Errors
print("Hello") # Indented
incorrectly.
Example:
3. Name
Errors print(x) # x is not defined.
Example:
4. Type
Errors print("Hello" + 5) # Cannot add string
and integer.
Example:
5. Value
Errors int("abc") # Cannot convert letters to
integers.
• Practice debugging to
become a proficient
programmer.
Thank you