mirror of
https://github.com/W3SLAV/micropython.git
synced 2025-06-20 12:35:34 -04:00
10 lines
172 B
Python
10 lines
172 B
Python
a = [1, 2, 3]
|
|
print(a.remove(2))
|
|
print(a)
|
|
try:
|
|
a.remove(2)
|
|
except ValueError:
|
|
print("Raised ValueError")
|
|
else:
|
|
raise AssertionError("Did not raise ValueError")
|