I want it to print out
this is '(single quote) and "(double quote)
I use the following (I want to use raw string 'r' here)
a=r'this is \'(single quote) and "(double quote)'
but it prints out
this is \'(single quote) and "(double quote)
What is the correct way to escape ' in raw string?
Quoting from Python String Literals Docs,
There are two ways to fixing this
Using multiline raw strings, like mentioned in the section Python Strings
Using String literal concatenation,