Data type defines the type of the variable, whether it is an integer variable, string variable, tuple, dictionary, list etc. In this guide, you will learn about the data types and their usage in Python.
Python data types
Python data types are divided in two categories, mutable data types and immutable data types.
Immutable Data types in Python
1. Numeric
2. String
3. Tuple
Mutable Data types in Python
1. List
2. Dictionary
3. Set
1. Numeric Data Type in Python
Integer – In Python 3, there is no upper bound on the integer number which means we can have the value as large as our system memory allows.
# Integer number
num = 100
print(num)
print("Data Type of variable num is", type(num))
Output: