WeCodeAcademy
❮ set.union()set.difference() ❯

set.intersection()

Items in both sets.

Group: Set

Syntax

a.intersection(b)

Example

Examplepython
Open in editor »

← All of Python Reference