circuitpython/tests/stress/dict_copy.py
2021-03-15 19:27:36 +05:30

8 lines
134 B
Python

# copying a large dictionary
a = {i: 2 * i for i in range(1000)}
b = a.copy()
for i in range(1000):
print(i, b[i])
print(len(b))