Computer Science, asked by gurpreetGudia, 10 months ago


3 A sports teacher has measured the height of the students in the class. Saumya has been
given the assignment to find the maximum and minimum height of the student Suggest the
functions, which she should use to accomplish the task​

Answers

Answered by itzFLiNT
4

The below code is written in python,

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.

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.

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 = []

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: '))

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):

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'))

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)

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 ))

Hope it helps mark as brainliest plz

Similar questions