Help for this page

Select Code to Download


  1. or download this
    >>> a=666       # global
    >>> def fun1():
    ...
      File "<stdin>", line 2, in fun2
    UnboundLocalError: local variable 'a' referenced before assignment
    >>>