You are viewing a single comment's thread. Return to all 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)
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_marks=0 for i in student_marks[query_name]: sum_marks+=i