By Hemanta Sundaray on 2022-01-30
We can check the type of a Python variable using the type() function.
integer = 24
float = 12.24
name = "Hemanta"
print(type(integer))
# <class 'int'>
print(type(float))
# <class 'float'>
print(type(name))
# <class 'str'>