circuitpython/tests/basics/set_pop.py

10 lines
125 B
Python
Raw Normal View History

2014-01-12 13:23:36 -05:00
s = {1}
print(s.pop())
try:
print(s.pop(), "!!!")
except KeyError:
pass
else:
print("Failed to raise KeyError")