student_scores.py 340 B

123456789101112
  1. student_scores = [20, 32] #input("Input a list of student scores: ").split()
  2. for n in range(0, len(student_scores)):
  3. student_scores[n] = int(student_scores[n])
  4. highest_score = 0
  5. for score in student_scores:
  6. if score > highest_score:
  7. highest_score = score
  8. print("The highest score in the class is: " + str(highest_score))