X. Data Types - JulTob/Python GitHub Wiki
Whenever you create a variable in Python, it has a value with a corresponding data type. There are many different data types, such as integers, floats, booleans, and strings.
Data types are important, because they determine what kinds of actions you can do with them. For instance, you can divide two floats, but you cannot divide two strings. For instance, 12.0/2.0 makes sense, but "cat"/"dog" does not.
To avoid errors, we need to make sure that the actions match the data types that we have.
x = 14
print(x)
print(type(x))
14 <class 'int'>