diff between nums and nums[:] code example
Example: diff between nums and nums[:]
initial = []
a = initial
b = initial[:]
assert a is initial
assert b is not initial
initial = []
a = initial
b = initial[:]
assert a is initial
assert b is not initial