I tried to write a programe that gets a list and a number 'N' of steps from the user. The programe will move in a circular way the list. If the number is positive the items in the list will move N steps left, and if N is negative the items will move N steps right. If N=0 the list won't change.
L=[1,2,3,4,5]
if N==0 > [1,2,3,4,5]
if N==1 > [2,3,4,5,1]
if N==-1 > [5,1,2,3,4]
Can someone give me a clue how to code this program?