Python Escape Sequences Flashcards

1
Q

\

A

Backslash ()

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

'

A

Single-quote (‘)

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

"

A

Double-quote (“)

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

\a

A

ASCII bell (BEL)

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

\b

A

ASCII backspace (BS)

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

\f

A

ASCII formfeed (FF)

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

\n

A

ASCII linefeed (LF)

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

\N{name}

A

Character named name in the Unicode database (Unicode only)

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

\r ASCII

A

Carriage Return (CR)

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

\t ASCII

A

Horizontal Tab (TAB)

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

\uxxxx

A

Character with 16-bit hex value xxxx (Unicode only)

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

\Uxxxxxxxx

A

Character with 32-bit hex value xxxxxxxx (Unicode only)

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

\v

A

ASCII vertical tab (VT)

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

\ooo

A

Character with octal value ooo

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

\xhh

A

Character with hex value hh

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