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
Answered By
points
N/A
#192715
Syntax error working in Python
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.