how to get the ordinal number in list

Chris Angelico rosuav at gmail.com
Sun Aug 10 18:43:24 EDT 2014


On Mon, Aug 11, 2014 at 8:01 AM, Roy Smith <roy at panix.com> wrote:
> I'm with Mark.  This isn't math, it's programming.  Sure, the
> intersection of the two is non-null, but they are different things.
> I'll often do things like:
>
> for line in input:
>    line = line.strip()
>    # do more stuff

What does mathematics even have as a concept of looping? String
manipulation? Input and output?

ChrisA



More information about the Python-list mailing list