mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
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))
|