Typecasting

Jani Yusef jani at persian.com
Mon Feb 23 17:53:31 CET 2004


"Shah, Rajesh \(GE Consumer & Industrial\)" <Rajesh.Shah at ge.com> wrote in message news:<mailman.198.1077534828.27104.python-list at python.org>...
> Hi Everybody,
> 
> Can you guide me to convert string into Int datatype?
> (i.e. How can we convert string into int? like '555' into 555)
> 
> Thanks in advance.
> 
> ~Rajesh

Wow, YAMQFAI (Yet Another Moronic Question From An Indian). What is
terrible is how GE is now suffering because of these dollar a day
idiots. Man, what exactly did you learn at IIT? Did you learn how to
stop wiping your ass with your bare hand at least?
Anyway, the answer to your question is
s="555"
i=int(s)
now i is equal to 555.



More information about the Python-list mailing list