You are viewing a single comment's thread. Return to all comments →
sum = 0 for mark in student_marks[query_name]: sum += mark avg = sum / (len(student_marks[query_name])) print(f'{avg:.2f}')
Seems like cookies are disabled on this browser, please enable them to open this website
Finding the percentage
You are viewing a single comment's thread. Return to all comments →
sum = 0 for mark in student_marks[query_name]: sum += mark avg = sum / (len(student_marks[query_name]))
print(f'{avg:.2f}')