set_update.py 146 Bytes
Newer Older
John R. Lenton's avatar
John R. Lenton committed
1
2
3
4
5
6
7
8
9
10
11
12
def report(s):
    l = list(s)
    l.sort()
    print(l)

s = {1}
s.update()
report(s)
s.update([2])
report(s)
s.update([1,3], [2,2,4])
report(s)