python list for with index code example
Example: for loop with index python3
colors = ["red", "green", "blue", "purple"]
for i in range(len(colors)):
print(colors[i])
colors = ["red", "green", "blue", "purple"]
for i in range(len(colors)):
print(colors[i])