Passing variables between functions in Python
<p>Ok so I am having a tough time getting my head around passing variables between functions:</p>

<p>I can't seem to find a clear example. </p>

<p>I do not want to run funa() in funb(). </p>

<pre><code>def funa():
    name=input("what is your name?")
    age=input("how old are you?")
    return name, age

funa()

def funb(name, age):
    print(name)
    print(age)

funb()
</code></pre>

<p>As it is returning a tuple, you can simply unpack it with <code>*</code>:</p>

<pre><code>funb(*funa())
</code></pre>

<p>It should look something like this:</p>

<pre><code>def funa():
  # funa stuff
  return name, age

def funb(name, age):
  # funb stuff
  print ()

funb(*funa())
</code></pre>

python