How to Get Data Type of Any Object in Python


In this example we will show how to get the data type of any object in Python.

Source Code

a = 6
print(type(a))

Output:

<class 'int'>
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments