On Apr 3, 10:12 am, "bahoo" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to have many lists, such as list0, list1, list2, ..., each one
> holding different number of items.
> Is there something like
> list[0]
> list[1]
> list[2]
>
> so that I can iterate through this list of lists?
>
> Thanks!
> bahoo

list0 = [1]
list1 = [2,3,4,5]
list2 = [6,7,8]

allLists = [list0, list1, list2]
print allLists[1][3]
print allLists[0][0]

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to