Python Escape Sequences Flashcards
1
Q
\
A
Backslash ()
2
Q
'
A
Single-quote (‘)
3
Q
"
A
Double-quote (“)
4
Q
\a
A
ASCII bell (BEL)
5
Q
\b
A
ASCII backspace (BS)
6
Q
\f
A
ASCII formfeed (FF)
7
Q
\n
A
ASCII linefeed (LF)
8
Q
\N{name}
A
Character named name in the Unicode database (Unicode only)
9
Q
\r ASCII
A
Carriage Return (CR)
10
Q
\t ASCII
A
Horizontal Tab (TAB)
11
Q
\uxxxx
A
Character with 16-bit hex value xxxx (Unicode only)
12
Q
\Uxxxxxxxx
A
Character with 32-bit hex value xxxxxxxx (Unicode only)
13
Q
\v
A
ASCII vertical tab (VT)
14
Q
\ooo
A
Character with octal value ooo
15
Q
\xhh
A
Character with hex value hh