demo_ref_set_intersection_update.py:
x = {"apple", "banana", "cherry"} y = {"google", "microsoft", "apple"} x.intersection_update(y) print(x)
C:\Users\My Name>python demo_set_intersection_update.py
{'apple'}