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

5 lines
118 B
Python

setp = set(["Red", "Green"])
setq = set(["Green", "Red"])
#A shallow copy
setr = setp.copy()
print(setr)