Data Types Flashcards
1
Q
True
A
True Boolean value.
…True or False == True
2
Q
False
A
False Boolean value.
…False and True == False
3
Q
None
A
Represents “nothing” or “no value”.
…x = None
4
Q
bytes
A
Stores bytes, maybe if text, PNG, file, etc.
…x = b”hello”
5
Q
strings
A
Stores textual information.
…x = “hello”
6
Q
numbers
A
Stores integers.
…i = 100
7
Q
floats
A
Stores decimals.
…i = 10.389
8
Q
lists
A
Stores a list of things.
…j = [1, 2, 3, 4]
9
Q
dicts
A
Stores a key=value mapping of things.
…e = {‘x’ : 1, ‘y’ : 2}