• + 0 comments

    sum_marks=0 for i in student_marks[query_name]: sum_marks+=i

    average_marks= sum_marks/len(student_marks[query_name])
    print('%.2f'%average_marks)