collections.namedtuple()
-
hackerrank.com Practice>Python>Collections>Collections.namedtuple()hackerrank.com 2019. 2. 11. 13:26
collections.namedtuple()Problem link : https://www.hackerrank.com/challenges/py-collections-namedtuple/problemDifficulty : Easy TipKey point is that we shoiuld use namedtuple() to access MARKS while the position of MARKS column is changedcolumns can be used as the names of namedtuple()columns = input() // ID MARKS NAME CLASSStudent = namedtuple('Student', columns)Initialize Student from input() ..