Created
October 2, 2019 06:08
-
-
Save officialcjunior/815a91a53eebb13822e4edb55076d8e7 to your computer and use it in GitHub Desktop.
Hackerrank solutions- python
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
import collections | |
N = int(input()) | |
columns = input().split() | |
Student = collections.namedtuple('Student', columns) | |
sum = 0 | |
for i in range(N): | |
line = input().split() | |
student = Student(*line) | |
sum += int(student.MARKS) | |
print (sum / N) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment