How to find the type ...

robert.dowell at gmail.com robert.dowell at gmail.com
Fri Dec 9 17:56:26 CET 2005


>>> thisisastring = "1"
>>> thisisanint = 1
>>> type(thisisastring)
<type 'str'>
>>> type(thisisanint)
<type 'int'>
>>> thisisastring = int(thisisastring)
>>> thisisanint = str(thisisanint)
>>> type(thisisastring)
<type 'int'>
>>> type(thisisanint)
<type 'str'>
>>>




More information about the Python-list mailing list