local variable - run time error with local
<pre><code>x=5

def printx()
   print x
   x=10
</code></pre>

<p>running this gives unboundlocal error</p>

<p>but when my function is just print x i get no error.. </p>
