Tuples with named items/elements

Have you considered using a dictionary instead?

Also I don’t think you’d ever want to actually call namedtuple inside of a loop, the performance of that will probably be pretty bad.

1 Like