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! ​


Answer :

Answer:

Python Program for the task.

#Ask the user to input the number of students

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

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))