) Computing the performance of your student class. a) Receive an integer number from user that represents the number of students that he/she has. b) Receive the grades of each student and append them to list call it grades. c) Display for him/her the maximum, minimum, and average grade. d) Display for him/her how many students have the grade between 8-10, 5-7, and below 5
from statistics import mean
num_of_students = 20
grades = [4, 5, 3, 6, 9, 7, 7, 4, 1, 10, 9, 6, 5, 8, 5, 2, 8, 7, 5, 3]
max_grade = max(grades)
min_grade = min(grades)
avrg_grade = mean(grades)
print(max_grade)
print(min_grade)
print(avrg_grade)
for i in grades:
if i <= 5:
print(len(grades))
Comments
Leave a comment