def avg(array):
    """
    Makes the average of an array without Nones.
    Args:
        array (list): a list of floats and Nones

    Returns:
        float: the average of the list without the Nones.
    """
    array_wo_nones = list(filter(None, array))
    return sum(array_wo_nones, 0.0) / len(array_wo_nones) if len(array_wo_nones
        ) > 0 else 0.0
