Source Code:
(back to article)
my_list = [1, 2, 3, 4] my_list[1:3] = [5, 6] print(my_list)
Result:
Report an issue