IDNLearn.com is designed to help you find the answers you need quickly and easily. Join our community to receive prompt and reliable responses to your questions from knowledgeable professionals.

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

We appreciate your presence here. Keep sharing knowledge and helping others find the answers they need. This community is the perfect place to learn together. Thank you for choosing IDNLearn.com for your queries. We’re committed to providing accurate answers, so visit us again soon.