# Sets: No Duplicates Allowed

A set holds each value once and in no order, so it removes duplicates, checks quickly whether something is there, and compares two collections with union, intersection and difference.

![Cheat sheet: Sets: No Duplicates Allowed](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/05cacca8cb8a4a299a4baa3de1ab5ba7.webp)

- Category: Python
- Level: Apprentice
- Tags: Membership Operator (in), python, Set (python), Set Operations
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/python-sets-cheat-sheet
