fork download
  1. import copy
  2.  
  3. a = [[2, 3, 5], [1, 3, 5]]
  4. b = copy.deepcopy(a)
  5. b[0][1] = 100
  6. print(a)
  7.  
  8. #https://pt.stackoverflow.com/q/341040/101
Success #stdin #stdout 0.01s 27712KB
stdin
Standard input is empty
stdout
[[2, 3, 5], [1, 3, 5]]