Skip to content

Commit ba8d2c5

Browse files
author
rakesh
committed
commit
1 parent 92a43d2 commit ba8d2c5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

loops/highest_score.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)