title: How to pass an integer through an instance method and add that with an instance variable?
body: <p>I was trying to add the parameter <code>bonus</code> (which will take an integer) with the instance variable <code>self.pay</code> and wanted to print that final payment with the worker's name. But, I could not print that added total payment</p>
  
  <p>I want to call the method <code>rise()</code> instead of returning anything from it, but I am confused how I can call that and pass an integer number.</p>
  
  <pre><code>class Information:
      def __init__(self,first,last,pay):
  
          self.first = first
          self.last = last
          self.pay = pay
  
  
      def rise(self,int(bonus)):
          self.pay = self.pay + bonus
  
      def __str__(self):
          return "%s and %s and has a balance of %s" % (self.first,self.last,self.pay)
  
  if __name__ == "__main__":
      emp1 = Information("tom","jerry",999)
      print (emp1)
  </code></pre>