What is a key difference between a set and a list?

Advertisement

  • A set is an ordered collection of non-unique items. A list is an unordered collection of unique items.
  • A set is an ordered collection of unique items. A list is an unordered collection of non-unique items.
  • Elements can be retrieved from a list but they cannot be retrieved from a set.
  • A set is an unordered collection of unique items. A list is an ordered collection of non-unique items.
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