Created
April 7, 2017 07:32
-
-
Save abhinavkorpal/3ab5bb4f8e15a04188857c923a3a93eb to your computer and use it in GitHub Desktop.
Collections.namedtuple()
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
| from collections import namedtuple | |
| n, Student = input(), namedtuple('Student', raw_input()) | |
| print "%.2f" %( sum([float(stud.MARKS) for stud in [Student(*raw_input().split()) for _ in xrange(n)]]) / n ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment