unexpected EOF while parsing (python) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

unexpected EOF while parsing (python)

what does it mean?

6th Feb 2017, 11:50 AM
Guido Parlatore
Guido Parlatore - avatar
2 Answers
+ 12
End Of File.
6th Feb 2017, 12:49 PM
Valen.H. ~
Valen.H. ~ - avatar
0
The SyntaxError: unexpected EOF while parsing means that the end of your source code was reached before all code blocks were completed. A Python code block starts with a statement like for i in range(100): and requires at least one line afterwards that contains code that should be in it. Also, this can simply mean you are missing or have too many parenthesis. For example this has too many, and will result in unexpected EOF. http://net-informations.com/python/default.htm
6th May 2020, 6:37 AM
rahul kumar
rahul kumar - avatar