iterating over python list code example
Example 1: python iterate list
lst = [10, 50, 75, 83, 98, 84, 32]
for x in range(len(lst)):
print(lst[x])
Example 2: for loop in python array
for x in range (1, 100, 1):
print(x)
lst = [10, 50, 75, 83, 98, 84, 32]
for x in range(len(lst)):
print(lst[x])
for x in range (1, 100, 1):
print(x)