Swapping sublists over given range - Python
We are given a list and our task is to swap two sublists within the given list over specified ranges. For example, in the given a list [1, 4, 5, 8, 3, 10, 6, 7, 11, 14, 15, 2], swapping the elements in the range [1:3] with [6:8] will yield the list [1, 6, 7, 8, 3, 10, 4, 5, 11, 14, 15, 2]. Using Lis