Python Set update() Method
Description
The update() method modifies the current set, adding new elements or sets to it; if an added element already exists in the set, it appears only once and duplicates are ignored.
Syntax
update() method syntax:
set.update(set)
Parameters
- set -- required, can be an element or a set
Python Sets