Sets are unordered collections of unique, hashable elements.
1Operations
a | b union, a & b intersection, a − b difference, a ^ b symmetric difference
a <= b subset test
add, remove (error if missing), discard (no error)
Loading subject content…
Sets are unordered collections of unique, hashable elements.
a | b union, a & b intersection, a − b difference, a ^ b symmetric difference
a <= b subset test
add, remove (error if missing), discard (no error)