Skip to content

Instantly share code, notes, and snippets.

@officialcjunior
Created October 2, 2019 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save officialcjunior/815a91a53eebb13822e4edb55076d8e7 to your computer and use it in GitHub Desktop.
Save officialcjunior/815a91a53eebb13822e4edb55076d8e7 to your computer and use it in GitHub Desktop.
Hackerrank solutions- python
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