> 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.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to