Pages

Subscribe:

Ads 468x60px

Wednesday, December 7, 2022

How to get the type of a variable in python

We can get or detect the type of a variable using python type() function.
See the bellow code 

x = 5
y = "python"
print(type(x))
print(type(y))

No comments:

Post a Comment