list1 = ['aaa', 'bbb', 'ccc', 'ddd', 1, 2, 3, 4, 5, 6, 7, 8, 8, 8, 8, 9, 19] # count = 0 # for i in list1: # print(count, i) # count += 1 for i in list1: print(list1.index(i), i)
list1 = ['aaa', 'bbb', 'ccc', 'ddd', 1, 2, 3, 4, 5, 6, 7, 8, 8, 8, 8, 9, 19] # count = 0 # for i in list1: # print(count, i) # count += 1 for i in list1: print(list1.index(i), i)