DEV Community

Discussion on: 5 Python Tricks in one line. Beginner vs Professional

Collapse
 
vadimkolobanov profile image
Vadim Kolobanov

You are absolutely right. It may be worth adding the following

The set does not contain duplicate elements;

The elements of the set are immutable (they cannot be changed), but the set itself is changeable, and it can be changed;

Since the elements are not indexed, the sets do not support any slicing and indexing operations.