I want to do something like this:
myList[n]. Shift myList[k:l] to the left by s.
Example: Let n be 5, s = 1 and k and l be the 3rd and 4th element in the list.
Before:
[a,a,b,b,a]
After:
[a,b,b,a,a]
To be clear: I don't want to loose 'b' items in my list, 'a' can be overwritten.
What would be the most time and space efficient way to achieve this in Python?
Edit: NO ROTATION!