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)