my_items = (0, 1, 2, 3, 4, 3, 2, 1, 0)
def find_index(value, items):
for index, item in enumerate(items):
if item == value:
return index
my_value = 3
print(find_index(my_value, my_items))
def find_second_index(value, items):
first_index = find_index(value, items)
subitems = items[first_index+1:]
subindex = find_index(value, subitems)
return first_index + subindex + 1
print(find_second_index(my_value, my_items))
Currently, there are wheels compatible with the official distributions of Python 2.7, 3.4, 3.5, and 3.6. For those versions, both 32-bit and 64-bit wheels are available.