I have read that tuples are immutable. But this works fine:
t=(1,[2,3,4])
t[1][1]=9
Also, I tried printing their id
to see whether their ids are different as suggested in this question, but they are the same.
So I am confused, can someone please explain this behavior?