circuitpython/tests/basics/tests/list_copy.py
2014-01-03 23:42:17 +00:00

8 lines
92 B
Python

# list copy tests
a = [1, 2, []]
b = a.copy()
a[-1].append(1)
a.append(4)
print(a)
print(b)