Data types are the classification of data items. Data types represent a kind of value which determines what operations can be performed on that data.

It represents whether the value is Numeric, non-numeric and Boolean (true/false) data or other datatypes.

Types of Datatypes

These are the different types of datatypes available in python. Now the detailed explanation with an example is given in the table below.

Datatypes

Type of the variable

pi = 3.14
print(type(pi))            

In the above code, the type of the variable is found by using the type keyword and passing the variable as a input to find the type of the variable. We have not covered datatypes but just remember we can use type to find the data type of the variable.