for i in range(len(input_list)): v = input_list[i] ...do something with v and i...
for i, v in enumerate(input_list): ...