Create
Learn
Share

Python 3 Escape Sequences

rename
amber8bo8bamber's version from 2018-08-19 18:30

Section

Question Answer
\\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 a 16-bit hex value xxxx
\UxxxxxxxxCharacter with a 32-bit hex value
\vASCII vertical tab (VT)
\000Character with octal value 000
\xhhCharacter with hex value hh
memorize