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