List Slice Assignment in Python

You know that lists are mutable objects, meaning that elements can be appended, deleted, inserted and few other operations. And you have…