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
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
3
Answer:
ms Excel
is the right answer.
Similar questions
Science,
7 months ago
Science,
7 months ago
Computer Science,
7 months ago
Art,
1 year ago
Biology,
1 year ago