On Sat, Mar 7, 2015 at 1:28 PM, Danny Yoo <d...@hashcollision.org> wrote: >> You could certainly use I as an index into a list called x. This >> doesn't look like a good idea though > > > Can you explain more what's problematic with a list? > > My best understanding so far of the problem is that the original > questioner is trying to compute a tabulation of results. For example, > I think they're trying to compute the squares of the numbers 1 up to > some large number like 20. In that scenario, lists seem like a > reasonable representation for such a table.
Sorry for clumsy answer. I was trying to say that using a list with i as an index was a solution rather than trying to build names on the fly with some text concatenated to the value of i -- Joel Goldstick http://joelgoldstick.com _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor