Answers for "circular list python"

0

circular list python

from itertools import cycle

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

pool = cycle(lst)

for item in pool:
    print item
Posted by: Guest on November-07-2020

Python Answers by Framework

Browse Popular Code Answers by Language