circuitpython/tests/basics/set_update.py

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))