python for loop on array code example
Example 1: how to loop the length of an array pytoh
array = range(10)
for i in range(len(array)):
print(array[i])
Example 2: python array looping
array = ["Var1","Var2","Var3"]
for i in range(len(array)):
print(array[i])
#Output#
#Var1
#Var2
#Var3
Example 3: for loop in python array
for x in range (1, 100, 1):
print(x)