Python escape sequences Flashcards

1
Q

Backslash ()

A

\

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Single-quote (‘)

A

'

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Double-quote (“)

A

"

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

ASCII bell (BEL)

A

\a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ASCII backspace (BS)

A

\b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

ASCII formfeed(FF)

A

\f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

ASCII linefeed (LF)

A

\n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Character name in the Unicode database (Unicode only)

A

\N{name}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Carriage Return (CR)

A

\r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Horizontal Tab (TAB)

A

\t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Character with 16-bit hex value xxxx

A

\uxxxx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Character with 32-bit hex value xxxxxxxx

A

\Uxxxxxxxx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

ASCII vertical tab (VT)

A

\v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Character with octal value ooo

A

\ooo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Character with hex value hh

A

\xhh

How well did you know this?
1
Not at all
2
3
4
5
Perfectly