Skip to content

pytere

Dummy package content for pytere.

is_odd(x)

Function checking if a number is odd.

Parameters:

Name Type Description Default
x float

Number to check.

required

Returns:

Type Description
bool

True if the number is odd, False otherwise.

Source code in pytere/__init__.py
 4
 5
 6
 7
 8
 9
10
11
12
13
def is_odd(x: float) -> bool:
    """Function checking if a number is odd.

    Args:
        x (float): Number to check.

    Returns:
        True if the number is odd, False otherwise.
    """
    return x % 2 == 1