Oitput is 4.
The list 'a' contains the elements 0, 1, 23. As b is a copy of a so it contains the same elements. On appending 4 to the list b makes it 0, 1 , 23 , 4. So the length of the list is 4.
Oitput is 4.
The list 'a' contains the elements 0, 1, 23. As b is a copy of a so it contains the same elements. On appending 4 to the list b makes it 0, 1 , 23 , 4. So the length of the list is 4.
That's correct!