Question #243

Which one is a subclass of tuple with field names and a class name?

A named tuple is exactly like a normal tuple, except that the fields can also be accessed by .fieldname. Named tuples are still immutable, elements are still indexes by integers, and they can be iterated on. (accelebrate.com/blog/named-tuples-in-python#:~:text=A%20n...)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵