How to determine the type of an object in Python

Every object belongs to a type. For example, the type of [1,2,3] is list and the type of 1 is int.

Solution for How to determine the type of an object in Python : You can use type() to determine the type of an object Call type(object) to return the type of object.


how-to-determine-the-type-of-an-object-in-python