Python Programming - Sets - Discussion

Discussion Forum : Sets - General Questions (Q.No. 10)
10.
What is the purpose of the set.update(iterable) method?
Adds elements to the set.
Removes elements from the set.
Updates the set with elements from another set.
Raises a TypeError since sets are immutable.
Answer: Option
Explanation:
The update() method is used to add elements to the set.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.