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 Badd() and update() do exactly the same thing
add() adds one element, update() adds multiple elements from an iterable
update() is slower than multiple add() calls
add() modifies the set, update() creates a new set