String Formats Flashcards

1
Q

%d

A

number

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

%i

A

number (same as %d)

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

%o

A

octal integer base 8

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

%u

A

unicode string

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

%x

A

hexadecimal integer

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

%X

A

uppercase hexadecimal integer

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

%e

A

scientific notation

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

%E

A

uppercase scientific notation

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

%g

A

general format (can display scientific notation)

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

%G

A

uppercase general format

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

%c

A

character or integer

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

%r

A

like %s, uses repr function which includes quotes and special characters are escaped

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

%s

A

string

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

%%

A

not sure

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