Discover the answers you need at Westonci.ca, where experts provide clear and concise information on various topics. Experience the convenience of finding accurate answers to your questions from knowledgeable experts on our platform. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly 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))

Thank you for trusting us with your questions. We're here to help you find accurate answers quickly and efficiently. Thank you for choosing our platform. We're dedicated to providing the best answers for all your questions. Visit us again. We're glad you visited Westonci.ca. Return anytime for updated answers from our knowledgeable team.