Write a program to find union of 2 arrays


Topic: Write a program to find union of 2 arrays

Solution

a = {1, 2, 3, 4}
b = {3, 4, 5, 6}
union_both = a.union(b)
print("Union", union_both)



List all Python Programs