human
iterator returns triplet i want just one of the elements.
assistant
Here is a Python function to iterator returns triplets. I want just one of the elements to be returned

import itertools

def get_one_element(iterator):
    """
    >>> iterator = iter([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
    >>> get_one_element(iterator)
    1
    """
    return next(iterator)

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

# Calling the function
print((get_one_element(itertools.cycle(x))))

#Example Output
# 1

#Remember to inspect code for bugs.