circuitpython/tests/basics/set_add.py
Andrew Scheller 1ff6011abc Modify set tests to print sorted sets directly
instead of creating temporary lists and sorting those in-place
2014-04-07 05:00:03 +01:00

4 lines
50 B
Python

s = {1, 2, 3, 4}
print(s.add(5))
print(sorted(s))