micropython/tests/basics/dict_clear.py

7 lines
64 B
Python
Raw Normal View History

d = {1: 2, 3: 4}
print(d)
d.clear()
print(d)
d[2] = 42
print(d)