Converting Strings to Integers in Python
aahz at netcom.com
Tue Feb 22 23:15:16 CET 2000
In article <sSDs4.350$u37.23539 at news.uswest.net>,
Lenny Self <lenny at squiggie.com> wrote:
>I am new to Python and programming in general. I was wondering if someone
>might help me with the proper syntax for converting a string or a portion of
>a string into an integer.
i = int(s)
--- Aahz (Copyright 2000 by aahz at netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Love does not conquer all. Humans are extremely flexible, usually more
flexible than we're willing to admit. But some flexibility comes at a
cost, and sometimes that cost is more than we can bear.
More information about the Python-list