<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ProbGreater(self, x):
 """Probability that a sample from this Pmf exceeds x. x: number returns: float probability """

        t = [prob for (val, prob) in self.d.iteritems() if val > x]
        return sum(t)