Named tuplesΒΆ

Example

>>> from collections import namedtuple
>>> person = namedtuple('person','first last')
>>> my_friend = person('John','Doe')
>>> my_friend
person(first='John', last='Doe')
>>> my_friend.first
'John'
>>> my_friend.last
'Doe'
>>>