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