Skip to content

Instantly share code, notes, and snippets.

@abhinavkorpal
Created April 8, 2017 07:57
Show Gist options
  • Select an option

  • Save abhinavkorpal/3cc4f57d13bc59e9ef35a7ba7a122ac7 to your computer and use it in GitHub Desktop.

Select an option

Save abhinavkorpal/3cc4f57d13bc59e9ef35a7ba7a122ac7 to your computer and use it in GitHub Desktop.
Finding the percentage
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