Elementary Python Indexing Solution


#1

def rotateArray(self, a, b):
b = b%len(a)
return a[b:]+a[:b]