linagurung775
linagurung775 linagurung775
  • 02-06-2021
  • Computers and Technology
contestada

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

Respuesta :

sandlee09
sandlee09 sandlee09
  • 07-06-2021

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

Ver imagen sandlee09
Answer Link

Otras preguntas

What is 4,785 rounded to the nearest thousand?
Which is the best estimate of -14 1/9 (-2 9/10)
True or False A satisfying and complete result for a broad information query can be Fully Meets.
Nombre de deporte que tenga diptongo
Select the form of the verb ser that agrees with the subject. yo __________ de florida. son eres soy es
Find the equation perpendicular to the line y=−3x+5 that passes through point (2, 6). Show Work
alice, Kathy, and Sheila work as medical assistants at valley clinic. alice has worked 8 years longer than Kathy. Kathy has worked half as long as Sheila. if Sh
Is this right? Algebra II
Which matrix represents the system of equations shown below
sound travels about 340m/s the function d(t)=340t gives the distance d(t) in meters that sound travel in t seconds how far doe sit travel in 49 s