“significar” Código de respuesta

significar

The arithmetic average of a data set.

found by dividing the sum of the terms in a set by the number of terms in the set.

Examples:

mean of 1 and 3 = (1 + 3)/2 = 2

mean of 1 and 2 = (1 + 2)/2 = 1.5

mean of 9, 10, and 21 = (9 + 10 + 21)/3 = 13.3333333333333333333333333333

mean of 6, 5, and 16 = (6 + 5 + 15)/3 = 24 
jawwson

significar


#the plan is to have a boring mean
def mean(arr): # mean
  return sum(arr)/len(arr)
your un average joe

significar

#the plan is to remove all values that are zero

def mean(arr): # mod_mean
  arr = list(filter(lambda n:n!=0,arr))
  return sum(arr)/len(arr)
  
your un average joe

Respuestas similares a “significar”

Preguntas similares a “significar”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código