how to get index in for loop python 3 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])