Write a program to Keep All items from List But NOT the Duplicates


Topic: Write a program to Keep All items from List But NOT the Duplicates

Solution

x = {"apple", "banana", "cherry"}
y = {"google", "microsoft", "apple"}
x.symmetric_difference_update(y)
print(f"Duplicate Value in Two set:{x}")



List all Python Programs