SyntaxFix
Write A Post
Hire A Developer
Questions
Another alternative:
def move(arr, n): return [arr[(idx-n) % len(arr)] for idx,_ in enumerate(arr)]