Given two Python sets, write a Python program to update the first set with items that exist only in the first set and not in the second set.
belongs to collection: Python Set Exercises
All Answers
total answers (1)
belongs to collection: Python Set Exercises
total answers (1)
Hint:
Use the
difference_update()
method of a set.Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer