Apply country inside python for loop May 20, 2022 by admin The easiest and pythonic way to do this is the following: for idx, item in enumerate(my_list): print(idx) print(item)