Write Pythonic and Clean Code With `namedtuple` bit.ly/3hEKitB
2
9
37
0
10
@pycoders Yeah but don’t because namedtuples are still iterable and indexable, leading to much confusion. Use dataclasses or attrs instead, as others have said.