Home / Python Data Types / 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'>