SyntaxFix
Write A Post
Hire A Developer
Questions
If you're in control of the string, you could also use a 'Raw' string type:
>>> string = r"abcd\n" >>> print(string) abcd\n