title: pass function result as input parameter to a function in class
body: <pre><code> class main_prg:
        def func():
              # code that generates x and y
              return x,y
        def func1(x):
              #uses the value of x that is returned from func()
             z=x+3
              return z
  </code></pre>
  
  <p>How to pass <code>x</code> to <code>func1()</code>?</p>
  
  <p>I have tried </p>
  
  <pre><code>m=main_prg()
  f01,f11 = m.func()
  f2 = m.func1(f01)
  </code></pre>
  
  <p>Throws me an error <code>func1() takes exactly 1 argument (2 given)</code> </p>