Created
May 20, 2015 10:42
-
-
Save nipunbatra/59dbb09018aa24259157 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
| In [1]: import a as a | |
| In [2]: a.hi() | |
| Hi there | |
| In [3]: a.var | |
| a.var_1 a.var_2 | |
| In [3]: a.var_1 | |
| Out[3]: 0 | |
| In [4]: from a import hi | |
| In [5]: var_1 | |
| --------------------------------------------------------------------------- | |
| NameError Traceback (most recent call last) | |
| <ipython-input-5-36465f6f2c12> in <module>() | |
| ----> 1 var_1 | |
| NameError: name 'var_1' is not defined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment