Converting Strings to Integers in Python

Lenny Self lenny at squiggie.com
Tue Feb 22 18:06:36 EST 2000


Thanks for the help.

    -- Lenny

"Aahz Maruch" <aahz at netcom.com> wrote in message
news:88v1pk$l42$1 at nntp6.atl.mindspring.net...
> 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 mailing list