We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Finding the percentage
Finding the percentage
Sort by
recency
|
3934 Discussions
|
Please Login in order to post a comment
average_marks = sum(student_marks [query_name])/3 print("{: . 2f}".format (average_marks))
if name == 'main': n = int(input()) student_marks = {} for _ in range(n): name, *line = input().split() scores = list(map(float, line)) student_marks[name] = scores query_name = input() avg_marks= sum(student_marks[query_name])/3 print("{:.2f}".format(avg_marks))