On Sat, Oct 4, 2008 at 9:45 AM, Alan Gauld <alan.gauld at btinternet.com> 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