I have this below code
a = [1,2,3]
b = a
a is b #shows True
b = a[:]
a is b #shows False
a == b # shows True
I thought the value of [1,2,3] and a[:] would have the same id and they are the exact same object. What exactly happens when a[:] is assigned to b? I'm sorry if this question has already been asked before, could not find a perfect answer