Mega Code Archive

 
Categories / Python Tutorial / Buildin Function
 

The syntax for type() is

# type() takes an object and returns its type. The  return value is a type object. print type(4)                                    # int type print type('Hello World!')                     # string type print type(type(4))                              # type type