circuitpython/tests/basics/dict_copy.py

6 lines
100 B
Python

a = {i: 2*i for i in range(100)}
b = a.copy()
for i in range(100):
print(i, b[i])
print(len(b))