1ff6011abc
instead of creating temporary lists and sorting those in-place
8 lines
101 B
Python
8 lines
101 B
Python
s = {1}
|
|
s.update()
|
|
print(s)
|
|
s.update([2])
|
|
print(sorted(s))
|
|
s.update([1,3], [2,2,4])
|
|
print(sorted(s))
|