def variance(values):
  """
  Returns the variance of a set of variables
  """
  average=sum(values)/len(values)
  def square(x):
    return x*x
  return sum([square(x-average) for x in values])/len(values)