code: def AddConstant(self, other):
          
          pmf = Pmf()
          for v1, p1 in self.Items():
              pmf.Set(v1 + other, p1)
          return pmf
docs: Computes the Pmf of the sum a constant and  values from self.
  
          other: a number
  
          returns: new Pmf