We are all familiar with the classic question of rotating a list to the left, say:
mylist = [1,2,3,4,5,6,7] #rotate by two to the left mylist[2:] + mylist[:2