child= [[]] * 10
child[0].append(3)
I expected the output to be
child
[[3], [], [], [], [], [], [], [], [], []]
where output came out to be
child
[[3], [3], [3], [3], [3], [3], [3], [3], [3], [3]]
child= [[]] * 10
child[0].append(3)
I expected the output to be
child
[[3], [], [], [], [], [], [], [], [], []]
where output came out to be
child
[[3], [3], [3], [3], [3], [3], [3], [3], [3], [3]]