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