I just noticed a behaviour in python I don't understand.
Imagine the following code:
myArray = [0] * 10
myTuple = (1,1)
Now I want to assign the two values in my tuple to two fields in my array. Since Python allows to change muliple values at once I tried
myArray[2:3] = myTuple
What I expect for myArray is
[0,0,1,1,0,0,0,0,0,0]
But what I actually get is
[0,0,1,1,0,0,0,0,0,0,0]
Who can explain this behaviour to me?