Skip to content

Commit 869aace

Browse files
finding the % added
1 parent 5203652 commit 869aace

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
n = int(input())
2+
student_marks = {}
3+
for _ in range(n):
4+
name, *line = input().split()
5+
scores = list(map(float, line))
6+
student_marks[name] = scores
7+
8+
query_name = input()
9+
query_scores = student_marks[query_name]
10+
avg = sum(query_scores) / 3.0
11+
print("%.2f" % avg)

0 commit comments

Comments
 (0)