use of index (beginner's question)
iainking at gmail.com
Thu Apr 28 10:13:53 CEST 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!
More information about the Python-list