Literals Flashcards

1
Q

literal is data whose values are determined by the

A

literal itself

123 = One Hundred and Twenty Three

c == ?
speed of light?
constant
length of hypotenuse

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

Therefore

123 is a literal

A

c is not

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

used to encode data and put them into your code

A

literals

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

very common type of literal

A

string

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

another type of literal

A

integer - number

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

a series of letters

A

string

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

integer converted into machine representation

A

set of bits

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

If you encode a literal and place it inside Python code, the form of the literal determines the representation (type) Python will use to

A

store it in the memory.

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