def MVAVARAGE(List, N):
    """
    input:
        List- a list
        N- N point avarage
    Returns:
        N point avarage of the List
    
    """
    cumsum, moving_aves = [0], []
    
    for i, x in enumerate(List, 1):
        cumsum.append(cumsum[i-1] + x)
        if i>=N:
            moving_ave = (cumsum[i] - cumsum[i-N])/N
        else:
            moving_ave = 0
        moving_aves.append(moving_ave)
    return(moving_aves)