The type Function : Type : Language Basics : Python examples (example source code) Organized by topic

C++
PHP
Python


Python  »  Language Basics   » [  Type  ]  Screenshots 
 



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 class type function used for class
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.