items=['baseball','basketball','football']
for index, item in enumerate(items):
print(index, item)
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)
colors = ["red", "green", "blue", "purple"]
ratios = [0.2, 0.3, 0.1, 0.4]
for color, ratio in zip(colors, ratios):
print("{}% {}".format(ratio * 100, color))
for header, rows in zip(headers, columns):
print("{}: {}".format(header, ", ".join(rows)))