Common Mistakes in Python
In this post, you will learn how to work with common mistakes so that you can use that same knowledge and thus evolve.
||When the displayed variable is not defined|
||When indentation is not done correctly|
||When a string is not finalized (closed)|
||When a function is not closed correctly and not only|
variable = 'I\'m a string.' print(variablee) # NameError: name 'variablee' is not defined def function(): print('I\'m part of this function.') # IndentationError: expected an indented block print('I\'m also a string.)' # SyntaxError: EOL while scanning string literal print('We are all a string.' # SyntaxError: invalid syntax