from collections import namedtuple
Player = namedtuple('Player', ['name', 'number'])
p1 = Player('Jordan', 23)
print(p1.name) # get Jordan
from collections import namedtuple
Player = namedtuple('Player', ['name', 'number'])
p1 = Player('Jordan', 23)
print(p1.name) # get Jordan