25.8k views
4 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! ​

1 Answer

5 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 Christian Hujer
by
4.7k points