Getting a Syntax Error: EOL while scanning the string literal in Python
Hey guys. Let's say I have a string a1="a really long string............", as soon as I post this, I getting EOL python error.
How to fixing this error? Appreciate the help!
You need to put a double quote (") at the end of the line to achieve your goal. You can also use """ and get away with it.
This can help you to fix EOL python error:
""" a very long string ......
....that can span multiple lines
"""
Let me know if that helps!