type of simple object

ech0 the.ech0 at gmail.com
Tue Feb 1 06:27:44 EST 2005


use the type function!

>>> s = 'test'
>>> i = 25
>>> type(s)
<type 'str'>
>>> type(i)
<type 'int'>




More information about the Python-list mailing list