def is_numeric(value):
    """
    Test if a value is numeric.

    PARAMETERS
    ==========

    value
        The value whose datatype is to be determined.

    RETURNS
    =======

    Boolean true if the value is numeric, else boolean false.
    """

    return isinstance(value, int) or isinstance(value, float)