def odd_numbers_list(start, stop):
    """
    Generate all the odd numbers in a given range.

    :param start: The start of the range.
    :param stop: The end of the range.
    :return: A list of odd numbers.
    """

    # Build a list with a list comprehension.  This only includes elements in the list if they are odd, because of
    # the if statement in the comprehension.
    return [i for i in range(start, stop + 1) if i % 2 == 1]