kopia lustrzana https://github.com/micropython/micropython
10 wiersze
147 B
Python
10 wiersze
147 B
Python
![]() |
s = {1}
|
||
|
print(s.remove(1))
|
||
|
print(list(s))
|
||
|
try:
|
||
|
print(s.remove(1), "!!!")
|
||
|
except KeyError:
|
||
|
pass
|
||
|
else:
|
||
|
print("failed to raise KeyError")
|