def check_alt(h):
    """
    Checks whether the input altitude is within range and correct type

    Parameters
    ----------
    h : float or int
        altitude (0 to 24k) in meters

    Returns
    -------
    None. Raises an exception in case
    """
    if isinstance(h, (int, float)):
        if ((h < 0) or (h > 24000)):
            raise ValueError('pressure model is only valid if 0 <= h <= 24000')
    else:
        raise TypeError('altitude should be "float" or "int"')

    return None