This lesson highlights the key features of the set data structure.

Structure #

A set is an unordered collection of data items.

The data is not indexed, so we can’t access elements using indices or get().

This is perhaps the simplest data structure in Python. We can think of it as a bag containing random items.

Get hands-on with 1200+ tech skills courses.