programming-examples/python/Sets/Python program to create a union of sets.py
2019-11-15 12:59:38 +01:00

5 lines
112 B
Python

#Union
setx = set(["green", "blue"])
sety = set(["blue", "yellow"])
seta = setx | sety
print(seta)