Implemented set.copy

This commit is contained in:
John R. Lenton
2014-01-12 15:56:25 +00:00
parent 1d7fb2f21b
commit 3b0bd87906
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
s = {1, 2, 3, 4}
t = s.copy()
s.add(5)
t.add(7)
for i in s, t:
l = list(i)
l.sort()
print(l)