python indexes 2 through 4 code example
Example 1: for loop with index python3
colors = ["red", "green", "blue", "purple"]
for i in range(len(colors)):
print(colors[i])
Example 2: iterate array python with index
for header, rows in zip(headers, columns):
print("{}: {}".format(header, ", ".join(rows)))