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

Admin

A Software Engineer, Social Media Marketing Expert, writer,

Post a Comment

Previous Post Next Post