def find(items, predicate):
    """
    Find the item in an iterable.

    :param items: an iterable
    :param predicate: a function which returns true if it matches your query
    :return: the first item which matched the predicate, else None
    """
    for item in items:
        if predicate(item):
            return item
    return None