<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi </FONT></DIV>
<DIV><FONT face=Arial size=2>can someone tell me why it prints the high score
table multiple times?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#high scores program<BR>scores =[]<BR>choice =
None</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>while choice != 0:<BR> print
"""high Score Table<BR> 0 -
exit<BR> 1 - show
Scores<BR> 2 - add a
score<BR> 3 - delete a
score<BR> 4 - sort
scores<BR> """<BR>
choice = input("what would you like to do?")<BR> if choice ==
0:<BR> print
"goodbye"<BR> elif choice ==
1:<BR> for score in
scores:<BR>
print scores<BR> elif choice ==
2:<BR> score = input("add a
score")<BR>
scores.append(score)<BR> elif choice ==
3:<BR> score = input("what score would
you like to delete ?")<BR> if score in
scores:<BR>
scores.remove(score)<BR>
else:<BR>
print "that score is not listed"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>
<BR> elif choice ==
4:<BR>
scores.sort()<BR> scores.reverse()<BR>
print scores, "highest score first"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>