items=['baseball','basketball','football']
for index, item in enumerate(items):
print(index, item)
cars = ["tesla", "audio" , "bwm", "VW", "seat"]
for i , value in enumerate(cars):
print(f'value is: {value}, and index = {i}')
for index, item in enumerate(iterable, start=1):
print index, item
colors = ["red", "green", "blue", "purple"]
for i in range(len(colors)):
print(colors[i])
for idx, x in enumerate(xs):
print(idx, x)
for header, rows in zip(headers, columns):
print("{}: {}".format(header, ", ".join(rows)))