Python Program to Access Index of a List Using for Loop (Without using enumerate())

bookmark

my_list = [21, 44, 35, 11]

for index in range(len(my_list)):
    value = my_list[index]
    print(index, value)

 

Output

0 21
1 44
2 35
3 11