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); next page/section
7
Q
\n
A
ASCII linefeed (LF); new line
8
Q
\N{name}
A
Character name name in the Unicode database (Unicode only)
9
Q
\r
A
Carriage Return (CR); goes to beginning of line
10
Q
\t
A
Horizontal Tab (TAB)
11
Q
\uxxxx
A
Character with 16-bit hex value xxxx (u” string only)
12
Q
\Uxxxxxxxx
A
Character with 32-bit hex value xxxxxxxx (u” string only)
13
Q
\v
A
ASCII vertical tab (VT)
14
Q
\000
A
Character with octal value 000
15
Q
\xhh
A
Character with hex value hh