Generation

generate functionTue, 21 Mar 2023

Calculate mean and median values of this list with numpy functions water = [1,2,3,4,2,4,2,4,5,2,3,4,2,1,3,4,3,2,5,1]

def mean_median(x): return np.mean(x), np.median(x) mean_median(water)

Questions about programming?Chat with your personal AI assistant