Saltar a contenido

Chapter 10: Sets

Sets are collections of unique items.

Example

Python
numbers = {1, 2, 3, 4, 4}

This set will contain {1, 2, 3, 4} because sets do not allow duplicate values.