code: def Mean(self):
          
          old_p = 0
          total = 0.0
          for x, new_p in zip(self.xs, self.ps):
              p = new_p - old_p
              total += p * x
              old_p = new_p
          return total
docs: Computes the mean of a CDF.
  
          Returns:
              float mean