Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

shift elements in list python

#Shifts all elements one to the right and moves end value to the start

li=li[-1:]+li[:-1]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #shift #elements #list #python
ADD COMMENT
Topic
Name
9+8 =