- You can assign a name to each of the namedtuple members and refer to them that way, similarly to how you would access keys in dictionary.
- Each member of a namedtuple object can be indexed to directly, just like in a regular tuple.
- namedtuples are just as memory efficient as regular tuples.
- No import is needed to use namedtuples because they are available in the standard library.
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.