Using a variable outside of function in Python
<p>A really simple question, and I'm sure I knew it but must have forgotten</p>

<p>When running this code:</p>

<pre><code>x = 0
def run_5():
    print "5 minutes later"
    x += 5
    print x, "minutes since start"

run_5()
print x
</code></pre>

<p>I get x isn't defined. How can I have x used in the function and effected outside of it?</p>
