February 2006
Intermediate to advanced
648 pages
14h 53m
English
The set and frozenset type support a number of common set operations:
| Operation | Description |
|---|---|
| s | t | Union of s and t |
| s & t | Intersection of s and t |
| s – t | Set difference |
| s ^ t | Symmetric difference |
| len(s) | Number of items in the set |
| max(s) | Maximum value |
| min(s) | Minimum value |