You are viewing a single comment's thread. Return to all comments →
print(f"{sum(student_marks[query_name])/3:.2f}")
length 3 is fixed. You could just hard code it.
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Finding the percentage
You are viewing a single comment's thread. Return to all comments →
print(f"{sum(student_marks[query_name])/3:.2f}")
length 3 is fixed. You could just hard code it.