how to run through a list in python code example
Example 1: python loop through list
list = [1, 3, 6, 9, 12]
for i in list:
print(i)
Example 2: how to iterate over a list in python
lst = [10, 50, 75, 83, 98, 84, 32]
res = list(map(lambda x:x, lst))
print(res)
Example 3: python iterate list
lst = [12, 123, 1234, 12345]
for i in lst:
print(i)
**********************result*********************
12
123
1234
12345