Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

circular list python

from itertools import cycle

lst = ['a', 'b', 'c']

pool = cycle(lst)

for item in pool:
    print item
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #circular #list #python
ADD COMMENT
Topic
Name
9+5 =