The type Function : Type « Language Basics « Python
- Python
- Language Basics
- Type
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