Write a Python program that prints a new set with all items from both sets by removing duplicates


Topic: Write a Python program that prints a new set with all items from both sets by removing duplicates

Solution

set1 = {10, 20, 30, 40, 50}
set2 = {30, 40, 50, 60, 70}
print(set1.union(set2))



List all Python Programs