def display_books(books, limit=10, year=None):
    """Prints the specified books to the console

    :param books: list of all the books
    :param limit: integer that indicates how many books to return
    :param year: integer indicating the oldest year to include
    :return: None
    """
    if year == None:
        max_len = len(books)
        books = iter(books)
        for _ in range(min(limit, max_len)):
            print(next(books))        
    else:
        books = filter(lambda x: int(x.year) >= year, books)
        for _ in range(limit):
            print(next(books))
    
    return None
    pass