Escape SequencesThis is all of the escape sequences Python supports. You may not use many of these, but memorize
their format and what they do anyway. Try them out in some strings to see if you can make them work.Escape What it does.
\\Backslash (\)
\'Single-quote (')
\"Double-quote (")
\aASCII bell (BEL)
\bASCII backspace (BS)
\fASCII formfeed (FF)
\nASCII linefeed (LF)
\N{name}Character named name in the Unicode database (Unicode only)\rCarriage return (CR)
\tHorizontal tab (TAB)
\uxxxxCharacter with 16-bit hex value xxxx
\UxxxxxxxxCharacter with 32-bit hex value xxxxxxxx
\vASCII vertical tab (VT)
\000Character with octal value000
\xhhCharacter with hex value hh