Learning Python: print variable inside a function from another function
<p>I want to do the following in python:</p>

<pre><code>def func1():
 var1 = "something"

def func2():
 print var1
</code></pre>

<p>What is the correct mode to do this ? I've not found in documentation at all</p>

<p>PS. If possible, it's not my plan to make that 'var1' a global variable.</p>

<p>Thanks.</p>
