mirror of
https://github.com/micropython/micropython.git
synced 2025-09-07 02:10:52 +02:00
12 lines
192 B
Python
12 lines
192 B
Python
d={1:2,3:4}
|
|
print(d.popitem())
|
|
print(d)
|
|
print(d.popitem())
|
|
print(d)
|
|
try:
|
|
print(d.popitem(), "!!!",)
|
|
except KeyError:
|
|
print("Raised KeyError")
|
|
else:
|
|
print("Did not raise KeyError")
|