The syntax for type() is : Type : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Type »

 

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



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Type