Errors and comments
Read · 1 of 5
Python tells you what went wrong
When something's wrong, Python stops and shows an error with the line number and the kind of problem. The last line of the message is the most useful one.
Common beginner mistakes: a missing quote or bracket, a misspelled name (Python cares about capitals: Print isn't print), or wrong indentation.
1 File "hello.py", line 22 print("Hi)3 ^4SyntaxError: unterminated string literal