WeCodeAcademy
❮ set.add()set.intersection() ❯

set.union()

All items from both sets.

Group: Set

Syntax

a.union(b)

Example

Examplepython
Open in editor »

← All of Python Reference