You are viewing a single comment's thread. Return to all comments →
print("{:.2f}".format(sum(x for x in student_marks[query_name])/3))
Use "{:.2f}".format(number) instead of round(number) to make sure trailing zeros are also printed
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 →
Use "{:.2f}".format(number) instead of round(number) to make sure trailing zeros are also printed