Checking variable's Data Type in Python

Checking variable's Data Type in Python

Instructor-svgAl-Mamun Sarkar
Mar 24 , 2020

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))

 

  • Share On:
  • fb
  • twitter
  • pinterest
  • instagram