names = ["john", "doe", "jane", "plane"] for idx, name in enumerate(names): print(idx, name)