1ff6011abc
instead of creating temporary lists and sorting those in-place
4 lines
50 B
Python
4 lines
50 B
Python
s = {1, 2, 3, 4}
|
|
print(s.add(5))
|
|
print(sorted(s))
|