code: def ProbGreater(self, x):
          
          t = [prob for (val, prob) in self.d.iteritems() if val > x]
          return sum(t)
docs: Probability that a sample from this Pmf exceeds x.
  
          x: number
  
          returns: float probability