Advertisement
JkSoftware

Day 5 = Exercise Highest Score

Nov 8th, 2021
723
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. #  Don't change the code below
  2. student_scores = input("Input a list of student scores ").split()
  3. for n in range(0, len(student_scores)):
  4.   student_scores[n] = int(student_scores[n])
  5. print(student_scores)
  6. #  Don't change the code above
  7. highescore = student_scores[0]
  8. for x in student_scores:
  9.     if x > highescore:
  10.         highescore = x
  11. print(highescore)
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement