What does the 'EOL' stand for in 'SyntaxError: EOL while scanning string literal'

datadeverik

Erik Anderson

Posted on July 22, 2019

What does the 'EOL' stand for in 'SyntaxError: EOL while scanning string literal'

I'm playing a game where I break my code and study the errors. I got this idea from "Learn Python the Hard Way." I know why I got the error: I deleted the quotation at the end of a string. What I don't know is what EOL stands for. I assume it stands for something? A cursory googling just brought up obscure examples of people being surprised to get this error.
And while we're at it, what does 'literal' mean in this context?
Thanks,
Erik

If you're curious, here's the broken code:

do_not = "don't
~~~~
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
datadeverik
Erik Anderson

Posted on July 22, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related