Write a program to remove common element between two sets


Topic: Write a program to remove common element between two sets

Solution

s1 = {"apple", "banana", "cherry"}
s2 = {"google", "microsoft", "apple"}
s1.difference_update(s2)
print(s1)



List all Python Programs