PythonExtra/tests/basics/set_copy.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
84 B
Python
Raw Permalink Normal View History

2014-01-12 16:56:25 +01:00
s = {1, 2, 3, 4}
t = s.copy()
s.add(5)
t.add(7)
for i in s, t:
print(sorted(i))