use of index (beginner's question)

Iain King iainking at gmail.com
Thu Apr 28 04:13:53 EDT 2011


On Apr 28, 2:45 am, Chris Angelico <ros... at gmail.com> wrote:
> Incidentally, you're allowed to put the comma on the last item too:
>>  lists = [
>   ['pig', 'horse', 'moose'],
>   ['62327', '49123', '79115'],
> ]
>> Often makes for easier maintenance, especially when you append
> array/list elements.
>> Chris Angelico

I did not know this. Very useful!
Iain


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /