from collections import namedtuplecard = namedtuple('card', ('rank', 'suit'))kapai = card('A', 'red')print(kapai)print(kapai.rank)print(kapai.suit)