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

Why do we use granite?
Lane is 10 times Mels age.  If the difference in their age is 27, how old is Mel?
The fetus is nourished by the __________ during the first 7 weeks and by the _______ from week 8 through birth ?
Select the simplified expression for 8(x - 4) - 4(x - 3) + 7x. 11x + 4411x - 711x - 4411x - 20
find the area of a triangle given that c=40m b=20m a=48°
if the score is 90% and the total is 70 what is the number correct ?
is 10 yards less than 360 inches
Add the following fractions.3/8 + 5/12 =
The data represent the ages of people working at a store. 19, 27, 20, 26, 20, 24, 32, 23, 20, 19, 21 What is the first quartile of these ages?
The function f(t) = −5t 2 + 20t + 60 models the approximate height of an object t seconds after it is launched. How many seconds does it take the object to hit