human
get index of iterator in.
assistant
Here is a Python program to get index of iterator in Python

import itertools

def _get_index(iterable, iterator):
    """Return the index of iterator in iterable.

    :param iterable:
    :param iterator:
    :return:
    """
    for i, item in enumerate(iterable):
        if item == iterator:
            return i
    return -1

# Enter the iterable
iterable = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

# Enter the iterator
iterator = 3

# Calling the function
index = _get_index(iterable, iterator)

print(index)

#Example Output
# 2

#Remember to inspect code for bugs.