On Sat, Oct 4, 2008 at 9:45 AM, Alan Gauld <[EMAIL PROTECTED]> wrote:

> It's not too bad but I would probably use a dictionary rather
> than the list - which avoids the index problem

Not sure how the dict is better - in either case, leaving off the
grade corresponding to a score of 100 will raise an exception.

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to