The union of sets and is the set of all elements in either or or both. You write .
For example, if and , then . Notice that appears in both sets, but the union lists it once because sets have no duplicates.
Union merges sets together. In code, this is like adding all items from two lists into one set, removing duplicates automatically.