Python Program to Access Index of a List Using for Loop (Start the indexing with non zero value)

bookmark

my_list = [21, 44, 35, 11]

for index, val in enumerate(my_list, start=1):
    print(index, val)

 

Output

1 21
2 44
3 35
4 11