Apply country inside python for loop
The easiest and pythonic way to do this is the following: for idx, item in enumerate(my_list): print(idx) print(item)
The easiest and pythonic way to do this is the following: for idx, item in enumerate(my_list): print(idx) print(item)
list = [a,b,c,d] for i, val in enumerate(list): print(i, val)