Write Program to cyclically rotate an array by one


Topic: Write Program to cyclically rotate an array by one

Solution

def cyclicRotate(input): 
    print ([input[-1]] + input[0:-1]) 



List all Python Programs