DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
left rotation in list
def array_left_rotation(a, d,): for i in range(d): t = a[0] a.pop(0) a.append(t) return a
Source by www.stechies.com #
PREVIOUS
NEXT
Tagged:
#left
#rotation
#list
ADD COMMENT
Topic
COMMENT
Name
1+7 =
Submit