Syntax error working in Python

Asked By 0 points N/A Posted on -
qa-featured

Hi Pro experts,

When I am working in Python, I got his error message before running the program. I know that syntax error means there is some error with the commands. The error message states EOL so I checked the End of Line. But I am not able to find any error to my knowledge. I am just a beginner so please guide me. Thanks.

There’s an error in you program:

EOL while scanning single-quoted string

SHARE
Answered By 70 points N/A #192715

Syntax error working in Python

qa-featured

Hello,

It is quite normal that beginners will do wrong with their programs but debugging will help them get a clear and efficient idea on their working.

EOL means that there is a syntax missing that indicates that the line is finished but couldn’t find that one. So this error message has popped out.

For example, if you are trying to run

print "hello world

There is a " missing here. The perfect line should be

print "hello world"

Now you should have understood where is the mistake.

For more debugging help, you may borrow information from this Python Debugging help.

Login/Register to Answer

Related Questions