I'm learning python, and am trying to move values in a list in loop. But dont know how to do it. So, if I have this:
list1 = ['a', 'b', 'c', 'd']
How can i rotate the values to right by one and get ['d', 'a', 'b', 'c'] and then move again [ 'c', 'd', 'a', 'b']?