Welcome to Westonci.ca, where your questions are met with accurate answers from a community of experts and enthusiasts. Discover the answers you need from a community of experts ready to help you with their knowledge and experience in various fields. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.

write a program to input 100 students marks and find the highest marks among the them​

Sagot :

Answer:

Explanation:

The following code is a Python program that allows you to input 100 marks. You can input the value -1 to exit the loop early. Once all the marks are entered the program prints out the highest mark among all of them. The output can be seen in the attached picture below with a test of a couple of marks.

marks = []

for x in range(100):

   mark = int(input("Enter a mark: "))

   if mark == -1:

       break

   else:

       marks.append(mark)

print("Max value: " + str(max(marks)))

View image sandlee09