1👍
✅
This probably is a manifold over duplicate question, but:
Python escaping routines. Python uses a backslash as standard escape in string representation. Which is exactly what happens here.
To give some easy (documented) examples:
Escape Sequence Meaning
\newline Ignored
\\ Backslash (\)
\' Single quote (')
\" Double quote (")
You can see the difference through an example like this:
>>> spam_eggs = '''spam
... eggs'''
>>> print spam_eggs
spam
eggs
>>> print repr(spam_eggs)
'spam\neggs'
👤Uvar
Source:stackexchange.com