blob: 6f3dfc7414413ea0bba6be08a6b46e4cae43dc6c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
def report(s):
l = list(s)
l.sort()
print(l)
s = {1, 2, 3, 4}
report(s)
report(s.intersection({1, 3}))
report(s.intersection([3, 4]))
print(s.intersection_update([1]))
report(s)
|