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

determine the most precise name of the quadrilateral ABCD from the information given. for #13 & #14
isabella has found that she stays the most fit by running variouse dinstances and terrains through out the week. On mondays she runs 2.5 miles, on tuesdays 4.6
Ho does differentiation change an embryo as it develops
What Is the Connection Between Sulfuric Acid and Hydrochloric Acid?
From where did the first novel originate?
Could you tell me what Are Spores?
The sum of two numbers is 44.The larger number is 20 more than the smaller number. What are the numbers?
solve for x:    x to the negative 3rd power is equal to 27 over 64
a spinner is divided into 8 equal sections. 5 sections are red and 3 are green. if the spinner is spun 3 times, what is the probability that it lands on red exa
How do you solve a system of equations by elimination when the signs are the same