How would I get the following program to accept inputs of exam scores from 0-100 with A being 100-90, B being 89-80, C being 79-70, D being 69-60, and F being everything less than 60?
import string
def main():
scores = ["F", "D", "C", "B", "A"]
g = input("Enter a score number (0-100): ")
print "The score of your exam is", scores [g-0] + "."
main()
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor