# if you want to get items and index at the same time, # use enumerate fruits = ['Apple','Banana','Orange'] for indx, fruit in enumerate(fruits): print(fruit, 'index:', indx)