This article details the use of escape characters in Python
EscapeWhat it does. Meaning
\\ backslash ( ) back slash
\ 'single-quote (') single quotation mark
\ "double-quote (") double quotation marks
\aASCII Bell (BEL) Bell character
\bASCII backspace (BS) backspace
\fASCII formfeed (FF) paper feed character
\n ASCII linefeed (LF ) line break
\n{name}Character named name in the Unicode database (Unicode only); name is its name.
\ rASCII carriage return (CR ) Carriage return
\ tASCII Horizontal tab (tab ) Horizontal tab
\uxxxxCharacter with 16-bit hex value xxxx (Unicode only) values are 16-bit hexadecimal xxxx characters
\uxxxxxxxxCharacter with 32-bit hex value xxxxxxxx (Unicode only) values are 32-bit hexadecimal xxxx characters
\vASCII vertical tab (VT) Vertical tab
\oooCharacter with octal value ooo is a character of octal Ooo
\xhh Character with hex value Hh value is a hexadecimal number of HH characters