#_asdict()
Explore tagged Tumblr posts
webbazaar0101 · 4 years ago
Text
namedtuple in Python
namedtuple in Python: The namedtuple method returns a tuple-like object with fields accessible with named indexes and the integer indexes of normal tuples. The biggest problem with ordinary tuples is that you have to remember the index of each field.....
The namedtuple method returns a tuple-like object with fields accessible with namedindexes and the integer indexes of normal tuples. The biggest problem with ordinary tuples is that you have to remember the index of each field of a tuple object so namedtuple() helps to remember the index of each field of a tuple object in ordinary tuples. It can be especially useful in an application where there…
View On WordPress
0 notes