a = [1,2,3,4,5,6] b = [9,9,9] a[1:2] = b print a