R Hughes r__hughes at hotmail.com
Mon Feb 23 23:01:42 CET 2004

No doubt someone has already suggested eval()
as in:
string = '555'
number  = eval(s)

"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.


More information about the Python-list mailing list