Which of these is NOT a characteristic of namedtuples?
No import is needed to use namedtuples because they are available in the standard library. We need to import it using:from collections import namedtuple
namedtuples
from collections import namedtuple
You can assign a name to each of the namedtuple members and refer to them that way, similarly to how you would access keys in dictionary.
namedtuple
dictionary
Each member of a namedtuple object can be indexed to directly, just like in a regular tuple.
tuple
namedtuples are just as memory efficient as regular tuples.
tuples