programming-examples/python/Sets/Python program to clear a set.py
2019-11-15 12:59:38 +01:00

5 lines
98 B
Python

setp = set(["Red", "Green"])
setq = setp.copy()
print(setq)
setq.clear()
print(setq)