For example:
x = [0] * 10
x[2:8] = [1] * 2
the result becomes:
[0,0,1,1,0,0]
Why is that happening? I didn't change the length of x but it automatically changed into 6.
Moreover, the assignment is assign to the middle part of the x list, could anybody tell me why?