Created
July 7, 2015 16:25
-
-
Save etscrivner/b02470e13ce957fb6255 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> account("deposit")(25) | |
| Traceback (most recent call last): | |
| File "<stdin>", line 1, in <module> | |
| File "closure_objects.py", line 3, in deposit | |
| balance = balance + amount | |
| UnboundLocalError: local variable 'balance' referenced before assignment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment