Set, Set In Python, Python Programming, Data Science, Artificial Intelligence.
ii. update() method: you can update a set by adding multiple elements at once. The elements to be added can be provided as an iterable (such as a list or another set). # Creating a set s = {1, 2, 3, 4} # Updating the set with multiple elements s.update([5, 6, 7]) print(s) #Output {1,2,3,4,5,6,7}