The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #243
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...)
Which one is a subclass of tuple with field names and a class name?
— The Python Quiz (@thepythonquiz) October 3, 2020
collections.enhancedtuple
collections.v2tuple
collections.supertuple
collections.namedtuple
collections.withfieldstuple#python #python3 #pythonprogramming #learnpython
Question difficulty: π΅π΅π΅π΅π΅