0

Possible Duplicate:
python: SyntaxError: EOL while scanning string literal

I sometime get this error when reading a text file

SyntaxError: EOL while scanning string literal

What does it mean and how can I fix it?

0

1 Answer 1

2

EOL means "End Of Line"

You forgot to close quotation marks of the type "stuff" or 'stuff'

like

>>> print "hello
  File "<stdin>", line 1
    print "hello
               ^
SyntaxError: EOL while scanning string literal
>>> print "hello"
hello

The caret points to where the problem is

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.