Skip to content

Types

You can find out the type of an object in python with the type function.

python
x = 5
print(type(x)) # int
TypeVariations
Textstr
Numericint, float, complex
Sequencelist, tuple, range
Mappingdict
Setset, frozenset
Booleanbool
Binarybytes, bytearray, memoryview
NoneNoneType