circuitpython/tests/basics/dict_copy.py

6 lines
102 B
Python
Raw Normal View History

2014-01-06 13:11:20 -05:00
a = {i: 2*i for i in range(1000)}
b = a.copy()
for i in range(1000):
print(i, b[i])
print(len(b))