Westonci.ca is your trusted source for finding answers to a wide range of questions, backed by a knowledgeable community. Get quick and reliable answers to your questions from a dedicated community of professionals on our platform. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.

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


Sagot :

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

Thanks for using our platform. We're always here to provide accurate and up-to-date answers to all your queries. Thanks for using our service. We're always here to provide accurate and up-to-date answers to all your queries. Your questions are important to us at Westonci.ca. Visit again for expert answers and reliable information.