[Danny] > >Anyway, this doesn't answer the problem: how do we add elements to a > >list? In Python, we can accumulate elements in a list by append()ing:
[code cut] [Tom] > So, for example, would I use the following in my "while" loop: > > date.append(T[N][0]) > > Before the loop, date would have to be defined as date =[], is this > correct? Yes. Each of the list variables that you're accumulating should each be initialized to an empty list. Good luck! _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor