I need A to be a copy of C How can I copy nested lists?
Attempt:
b = [["1","1","1"],["1","1","1"],["1","1","1"]]
c = [["2","2","2"],["2","2","2"],["2","2","2"]]
a = c.copy()
Result:
'list' object has no attribute 'copy'
a = c does not work
Attempt:
b = [["1","1","1"],["1","1","1"],["1","1","1"]]
c = [["2","2","2"],["2","2","2"],["2","2","2"]]
a = c
for y in range(0,3):
for x in range(0,3):
c[x][y] = b[2-x][2-y]
print(a)
Result:
[['1', '1', '1'], ['1', '1', '1'], ['1', '1', '1']]