programming-examples/python/Sets/Python program to clear a set.py

5 lines
98 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
setp = set(["Red", "Green"])
setq = setp.copy()
print(setq)
setq.clear()
print(setq)