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

5 lines
118 B
Python
Raw Normal View History

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