Computer Science, asked by boorgalavinay9689, 1 year ago

Sports teacher has measured the height of the student in a class saum ya has been given the assignment to find the maximum and minimum height of the student suggest the function which she should use to accomplish the task

Answers

Answered by Anonymous
39

Answer:

The below code is written in python,

Here we are taking inputs of the heights of the students in the class and put them into a list.

Then we are calling the max and min function to find the maximum and minimum height from the data.

heightlist = []

studentno= int(input('Number of students in the class: '))

for n in range(studentno):

   heightgiven= int(input('Enter the height of each student'))

   heightlist .append(heightgiven)

print("Maximum height among all in the class is :", max(heightlist ), "\nMinimum  height among all in the class is :", min(heightlist ))

Answered by janvi20064
3

Answer:

ms Excel

is the right answer.

Similar questions