Back
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.Try this:
""" a very long string ...... ....that can span multiple lines"""
""" a very long string ......
....that can span multiple lines
"""
Let me know if that helps!
To get rid of the error EOL while scanning string literal you can include \ characters in the string. If you have any of these, "escape" them with \\ and it should work fine.
To know more about this you can have a look at the following video:-
If you are interested to learn Python from Industry experts, you can sign up for this Python Certification Course by Intellipaat.
31k questions
32.8k answers
501 comments
693 users