Created
April 8, 2017 07:57
-
-
Save abhinavkorpal/3cc4f57d13bc59e9ef35a7ba7a122ac7 to your computer and use it in GitHub Desktop.
Finding the percentage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| n = int(raw_input()) | |
| mydict = {} | |
| for line in range(n): | |
| info = raw_input().split(" ") | |
| score = map(float, info[1:]) | |
| mydict[info[0]] = sum(score) / float(len(score)) | |
| print "%.2f" % round(mydict[raw_input()],2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment