OnlinePython

Adding to Sets Exercise

Question 1 of 6

What's the difference between add() and update() methods for sets?

my_set = {1, 2, 3}
my_set.add([4, 5])        # Option A
my_set.update([4, 5])     # Option B