[Tutor] Help
Joel Goldstick
joel.goldstick at gmail.com
Sat Mar 7 19:45:01 CET 2015
On Sat, Mar 7, 2015 at 1:28 PM, Danny Yoo <dyoo at 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
More information about the Tutor
mailing list