Data Types Flashcards

1
Q

True

A

True Boolean Value

Example:

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

Example:

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”

Example:

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, PNG, file, etc.

Example:

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

Example:

x = “hello”

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

numbers

A

Stores integers

Example:

i = 100

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

floats

A

Stores decimals

Example:

i = 10.389

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

lists

A

Stores lists of things

Example:

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

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