No brainer python alternative


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