Akhil Narayanan Nair home

Python - List Slice Operator

================

list = [‘a’, ‘b’, ‘c’, ‘d’, ‘e’, ‘f’]

print(list)

list[1:3] = [‘x’, ‘y’]

print(list)