Common Errors
Indentation Errors
If you are not careful with your indentations, you can cause Python to lose your place. For example, if you mix tabs and spaces, Python will complain.
if True:
print("Indentation")
print("Hello")
As you can see, the indentations are not consistent in the if block. Therefore, you will get an error, such as the one below.
File "<stdin>", line 3
print("Hello")
^
IndentationError: unexpected indent