[Tutor] changing string to integer in a script

Chad Crabtree flaxeater at yahoo.com
Thu Jun 24 01:03:52 EDT 2004


ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on
Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more
information.
>>> a='this is a string'
>>> type(a)
<type 'str'>
>>> a='11'
>>> type(a)
<type 'str'>
>>> a=int(a)
>>> type(a)
<type 'int'>
>>>

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Tutor mailing list