def is_odd(val):
    """
    Confirms if a value if odd.
    :param val: Value to be tested.
    :type val: int, float
    :return: True if the number is odd, otherwise false.
    :rtype: bool

    Examples:
    --------------------------
    .. code-block:: python
        >>> even_numbers = list(filter(is_odd, range(20)))
        >>> print(even_numbers)
        [1, 3, 5, 7, 9, 11, 13, 15, 17, 19]

        >>> print(is_odd(10))
        False

        >>> print(is_odd(-3))
        True

        >>> print([value for value in range(20) if is_odd(value)])
        [1, 3, 5, 7, 9, 11, 13, 15, 17, 19]

        >>> print([is_odd(value) for value in range(4)])
        [False, True, False, True]
    """
    return (val % 2) != 0