bb = ['one', 'two', 'three', 'infinity'] for ii, vv in enumerate(bb): print(ii, vv) # 0 one # 1 two # 2 three # 3 infinity