Python 101 - Learning About Sets
set data type is defined as an "unordered collection of distinct hashable objects" according to the Python 3 documentation. You can use a
set for membership testing, removing duplicates from a sequence and computing mathematical operations, like intersection, union, difference, and symmetric difference.
Because they are unordered collections, a
Keep reading with a 7-day free trial