Data Types Flashcards

(9 cards)

1
Q

True

A

True boolean value

e.g., True or False == True

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

False

A

False Boolean Value

e.g., False and True == False

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

None

A

Represents “Nothing” or “No Value”

x = None

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

bytes

A

Stores bytes, maybe of text, PHG, file

e.g., x = b”hello”

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

strings

A

Stores textual information

x = “hello”

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

numbers

A

Stores integers

i = 100

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

floats

A

Stores decimals

i = 10.369

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

lists

A

Stores a list of things

e.g. j = [1, 2, 3, 4]

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

dicts

A

Stores a key = value mapping of things

e = {‘x’:1, ‘y’:2}

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