Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Python Set update() Method

Python Set update() Method

Python3 Lists Python Sets


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