Home > Article > Backend Development > Escape characters in Python
Escape What it does. Meaning
\ Backslash () backslash
' Single-quote (') single quote
" Double-quote (") double quote
a ASCII bell (BEL) bell symbol
b ASCII backspace (BS) backspace character
f ASCII formfeed (FF) paper feed character
n ASCII linefeed (LF) newline character
N{name} Character named name in the Unicode database (Unicode only) Unicode database The character name in; name is its name
r ASCII Carriage Return (CR) carriage return character
t ASCII Horizontal Tab (TAB) horizontal tab character
uxxxx Character with 16-bit hex value xxxx (Unicode only) Character with 32-bit hex value xxxxxxxx (Unicode only) Character with 32-bit hex value xxxx
v ASCII vertical tab (VT) Vertical tab character
ooo Character with octal value ooo Character with octal value ooo
xhh Character with hex value hh Character with hexadecimal value hh