Checking variable's Data Type in Python

Author: Al-mamun Sarkar Date: 2020-03-24 18:46:22

Checking the variable's Data Type in Python. Displaying data type of a variable using type() function.

x = 12
print(type(x))

y = 12.4
print(type(y))

z = "Hello word"
print(type(z))

b = True
print(type(b))