13,573 views
36 votes
36 votes
5.10 (Find the highest score) Write a program that prompts the user to enter the number of students and each student's score, and displays the highest score.

Please help me! ​

User Lavrton
by
2.3k points

1 Answer

21 votes
21 votes

Answer:

Python Program for the task.

#Ask the user to input the number of students

n = int(input("Please enter the number of students:\\"))

print()

#Get students' scores

for i in range(n):

score_list = [ ] #placeholder for score

i = float(input("Please enter student's score:"))

score_list.append(i) # append student score

#print the highest score

print("The highest score is",max(score_list))

User Mehdi Boukhechba
by
2.7k points