[Tutor] Nesting lists?

Jonathan D. Schmidt jonathan.schmidt@wartburg.edu
Thu Apr 24 15:00:03 2003

What I've always done is:
data = []
data.append([<whatever values you want to insert])

hope that helps

I'd like to have 'an array of arrays'.  Yes, yes I know it's not an array in python but a list.  What I'd like to do is something to the effect of:
data = [data1[], data2[], data3[]]
but that just gives me an error.  I thought of maybe using a dictionary?
The idea is that I can have a for: loop that assigns values to the lists within the main list in order from first to last.  As in the e.g. data1.assign(x1), data2.assign(x2).