The type Function : Type « Language Basics « Python






The type Function

The type Function


#returns the datatype of any arbitrary object.

#The possible types are listed in the types module.

print type(1)

li = [] 
print type(li)

           
       








Related examples in the same category

1.type function used for classtype function used for class