You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': n = int(raw_input()) student_marks = {} for _ in range(n): line = raw_input().split() name, scores = line[0], line[1:] scores = map(float, scores) student_marks[name] = scores query_name = raw_input() query_scores = student_marks[query_name] print("{0:.2f}".format(sum(query_scores)/(len(query_scores))))
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 →