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. (

Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵