[Tutor] don't understand iteration

Clayton Kirkwood crk at godblessthe.us
Tue Nov 11 03:45:16 CET 2014

>-----Original Message-----
>From: Tutor [mailto:tutor-bounces+crk=godblessthe.us at python.org] On
>Behalf Of Ben Finney
>Sent: Sunday, November 09, 2014 8:25 PM
>To: tutor at python.org
>Subject: Re: [Tutor] don't understand iteration
>"Clayton Kirkwood" <crk at godblessthe.us> writes:
>> >-----Original Message-----
>> >From: Tutor [mailto:tutor-bounces+crk=godblessthe.us at python.org] On
>> >Behalf Of Dave Angel
>(Clayton, does your mail client not present messages written by their
>authors? The messages should not come to you “From:” the tutor list
>itself. It's awkward to follow whom you're quoting.)

I think it does, I am replying to your email just as stated in the above indented header.

>> >(month, day, time, ap, offset) = blah.group( *list (range (1, 6)))
>> >
>> >Should do it.
>> Where did you find that one?
>Working through the Python Tutorial (actually doing the examples, and
>working to understand them before moving on) teaches these and other
>Python concepts <URL:https://docs.python.org/3/tutorial/>.

Actually Ben, I do turn to the documentation first and foremost, and only after hours of trying things and their variations do I grovel and come here.

>> What does the '*' do/why?
>Learn about sequence unpacking in function parameters at the Tutorial

As I said above.

>> And why the weird range thing?
>Learn about the ‘range’ built-in at the Python library reference
> \         “I went to the museum where they had all the heads and arms |
>  `\      from the statues that are in all the other museums.” —Steven |
>_o__)                                                           Wright |
>Ben Finney
>Tutor maillist  -  Tutor at python.org
>To unsubscribe or change subscription options:

More information about the Tutor mailing list