So i copied using copy.copy which is shallow but if i change the value in one the value in the other won't get changed.
import copy
a=[1,2,3,4,5]
b=copy.copy(a)
print id(a[0])==id(b[0])
now i get true as output.Since the address of a[0] and b[0] is same then if i change the value of one the other must also change.
b[0]=55
print[a]
print[b]
Output:
[1,2,3,4,5]
[55,2,3,4,5]
So why is it like that?