Std1 = set(["Prayag","Aimtocode"]) Std2 = set(["Rahul","Anmol"]) print(Std1.union(Std2)) #printing the union of the sets