Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Create Finding_the_percentage_#58.py
Browse files Browse the repository at this point in the history
I have contributed in #58
  • Loading branch information
riyatomar9 authored Oct 20, 2022
1 parent 036cfd9 commit f0d66c7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/Finding_the_percentage_#58.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
N = int(input())
stud_dict = dict()

for i in range(N):
tmp = input().split(' ')
name = tmp[0]
stud_dict[name] = (float(tmp[1]), float(tmp[2]), float(tmp[3]))

name = input()
print('%.2f' % (sum(stud_dict[name]) / 3.0))

0 comments on commit f0d66c7

Please sign in to comment.