Python Programming - Sets - Discussion

Discussion Forum : Sets - General Questions (Q.No. 2)
2.
Which method is used to add an element to a set?
set.append(element)
set.insert(element)
set.add(element)
set.update(element)
Answer: Option
Explanation:
The add() method is used to add a single element to a set.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.