Which of these is NOT a characteristic of namedtuples?

Advertisement

  • 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.
  • Each member of a namedtuple object can be indexed to directly, just like in a regular tuple.
  • namedtuples are just as memory efficient as regular tuples.
  • No import is needed to use namedtuples because they are available in the standard library.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend