micropython/tests/basics/set_add.py

4 lines
50 B
Python
Raw Normal View History

2014-01-12 19:29:11 +04:00
s = {1, 2, 3, 4}
print(s.add(5))
print(sorted(s))