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

Metamorphosis is a type of homeostasis. a. True b. False
Who was the one truly discovered the Americas?
Christina works at a company that offers direct deposit of her paycheck. This service is called
1. Which of the following is the BEST example of a strong password? (Points : 1) password983457 passwordertpoisdf PaSsWoRd89 Passwor
-q-7q=8 whats q equal?
The United States has a free trade agreement with:
144 oz = ? lb please show work so i can better understand?
At the end of Morte d’Arthur by Sir Thomas Malory, King Arthur is mortally wounded by Sir Mordred. Which statement is the most likely prediction of what will ha
Which formula describes the following geometric sequence? Remember that n represents the term number. 3, 6, 12, 24, ... an = 2 · 3n - 1 an = 3 · 2n - 1 an = 2 +
analyse possible sources of conflict that may arise when planning and ways to resolve them