Answer to Question #266577 in Python for kareem

Question #266577

) 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


1
Expert's answer
2021-11-16T05:22:09-0500
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))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS