python how to iterate over a list code example
Example 1: how to cycle a list in python
it.dropwhile(lambda x: x != 4, it.cycle(l))
Example 2: python iterate list
lst = [12, 123, 1234, 12345]
for i in lst:
print(i)
**********************result*********************
12
123
1234
12345