code: def mean(xs):
      
      try:
          return sum(xs) / float(len(xs))
      except TypeError:
          raise ValueError("Input can't have non-numeric elements")
      except ZeroDivisionError:
          raise ValueError("Input can't be empty")
docs: Return the mean value of a sequence of values.
  
      >>> mean([2,4,4,4,5,5,7,9])
      5.0
      >>> mean([9,10,11,7,13])
      10.0
      >>> mean([1,1,10,19,19])
      10.0
      >>> mean([10,10,10,10,10])
      10.0
      >>> mean([1,"b"])
      Traceback (most recent call last):
        ...
      ValueError: Input can't have non-numeric elements
      >>> mean([])
      Traceback (most recent call last):
        ...
      ValueError: Input can't be empty