shift a list python code example
Example: shift elements in list python
#Shifts all elements one to the right and moves end value to the start
li=li[-1:]+li[:-1]
#Shifts all elements one to the right and moves end value to the start
li=li[-1:]+li[:-1]