programming-examples/python/Sets/Python program to create a union of sets.py

5 lines
112 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
#Union
setx = set(["green", "blue"])
sety = set(["blue", "yellow"])
seta = setx | sety
print(seta)