What does the 'EOL' stand for in 'SyntaxError: EOL while scanning string literal'
Erik Anderson
Posted on July 22, 2019
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
~~~~
💖 💪 🙅 🚩
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
webdev A Tale of WeakMap and WeakSet in JavaScript: The Guardians of Forgotten Secrets
November 29, 2024
productivity ✍️🤖 Learn How to Improve Your Prompts and Get More Detailed and Relevant Responses
November 29, 2024