How to find the type of variable in python?
We have an inbuilt function type() by which we can check the type of variable.
e.g.,
a=12 print(type(a))
e.g.,
s="Python" print(type(s))
This is how we can check the type of variable in python.
Subscribe
Login
Please login to comment
0 Discussion