how to print type of data in python code example Example: how to print data type in python var = 23.0 print(type(var)