How to check the type of variable in python?
![](https://pythonpoint.net/wp-content/uploads/2020/11/Yellow-and-Blue-Initiative-Blog-Banner-15-1024x576.jpg)
We have an inbuilt function type() by which we can check the type of variable.
e.g.,
a=12 print(type(a))
![](https://pythonpoint.net/wp-content/uploads/2020/11/Screenshot-893-1024x284.png)
e.g.,
s="Python" print(type(s))
![](https://pythonpoint.net/wp-content/uploads/2020/11/Screenshot-895-1024x175.png)
This is how we can check the type of variable in python.
Subscribe
Login
Please login to comment
0 Discussion