What is a Namedtuple Namedtuple is a function available in the `collections` module. It returns a new class that can be used to create tuple-like objects which have fields accessible by attribute lookup! Here's an example
By
–

What is a Namedtuple Namedtuple is a function available in the `collections` module. It returns a new class that can be used to create tuple-like objects which have fields accessible by attribute lookup! Here's an example