ReferenceSet methods
set.update()
Adds every item from an iterable.
Signature
collection.update(iterable)Parameters
| Name | Means |
|---|---|
iterable | items to add |
Returns
None.
Example
Python
tags = {"a"}
tags.update(["b", "c", "a"])
print(sorted(tags))Output
['a', 'b', 'c']