We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92a43d2 commit ba8d2c5Copy full SHA for ba8d2c5
1 file changed
loops/highest_score.py
@@ -0,0 +1,12 @@
1
+# Input a list of student scores
2
+student_scores = input().split()
3
+for n in range(0, len(student_scores)):
4
+ student_scores[n] = int(student_scores[n])
5
+
6
+# Write your code below this row 👇
7
+highest_score = 0
8
+for score in student_scores:
9
+ if score > highest_score:
10
+ highest_score = score
11
12
+print(f"The highest score in the class is: {highest_score}")
0 commit comments