Beginner: string to long

Justin Sheehy dworkin at ccs.neu.edu
Mon Apr 17 21:36:07 EDT 2000


hudson_melville at my-deja.com writes:

> The outputs are similar to '3564-752+617' How do I convert it so it
> can evaluate into a long integer? Is there a built-in that I don't
> know about that would do this?

>>> eval('3564-752+617')
3429

-Justin

 




More information about the Python-list mailing list