# score.py - This program gives the grade for an assignment with score 0-5. def main(): #ask for score score = input("Enter quiz score (0-5): ") #use string composed so letter grade at score's index (ex. index 5 -> A) grading = "FFDCBA" #print it out, find letter grade at score's index print "The grade is", grading[score] main()