def iterate(L): for index, item in enumerate(L): print(f'{item} at index: {index}') iterate([3, 5, 2, 1])