Skip to content Skip to sidebar Skip to footer

"syntaxerror: Unexpected Eof While Parsing" On Simple Python Print() Method

I get the message 'SyntaxError: unexpected EOF' on Python when typing the very simple script below. What have I done wrong and what does this message mean? Many thanks. c = 5 d

Solution 1:

You have to add ) on the end!

Solution 2:

add ) at the end of 4th line

this type of error usually occurs when there is no matching closing parenthesis for the opening

CORRECTED

c = 5 d = c*c

print("the type of d is"+ str(type(d)))

Post a Comment for ""syntaxerror: Unexpected Eof While Parsing" On Simple Python Print() Method"