There are many ways to deal with this:
-
Use r before the string to avoid any errors, this will parse the string without giving errors.
For example:
s= r”some very long string …”
-
Using escape characters \ to use it in strings add one more \. This means \\ without and space in between
-
Can use triple quotation marks, be careful to use only three quotation marks.
" " " a very long string ......
....multiple lines
" " "
Hope this helps.