Python Python Basics All Together Now Handle Exceptions

my code has 35 lines and has an error in line 36

File "", line 36


SyntaxError: unexpected EOF while parsing

1 Answer

Nathan English
Nathan English
2,644 Points

Typically there is something missing above the line. "The SyntaxError: unexpected EOF while parsing means that the end of your source code was reached before all code blocks were completed."

Chris Freeman
Chris Freeman
Treehouse Moderator 53,661 Points

...and this is usually due to a missing end of string quotation mark or mismatching quote marks, or a missing closing paren ) or bracket ] or brace }.