You are viewing a single comment's thread. Return to all comments →
Write the code in 4 lines except for import and main statements.
from collections import namedtuple if __name__ == '__main__': N, Mark, totalScore = int(input()), namedtuple('Mask', ','.join(input().split())), 0 for _ in range(N): totalScore += int(Mark(*input().split()).MARKS) print(f"{totalScore/N:.2f}")
Seems like cookies are disabled on this browser, please enable them to open this website
Collections.namedtuple()
You are viewing a single comment's thread. Return to all comments →
Write the code in 4 lines except for import and main statements.