while loop for array in python code example
Example 1: for loop in python array
for x in range (1, 100, 1):
print(x)
Example 2: python iterate list
lst = [12, 123, 1234, 12345]
for i in lst:
print(i)
**********************result*********************
12
123
1234
12345