Beginner: string to long

Justin Sheehy dworkin at
Mon Apr 17 21:36:07 EDT 2000

hudson_melville at 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')



More information about the Python-list mailing list