mirror of
https://github.com/rasbt/python_reference.git
synced 2024-11-23 20:11:13 +00:00
Update scope_resolution_legb_rule.ipynb
This commit is contained in:
parent
3f81eadf98
commit
32b66da48e
|
@ -457,7 +457,7 @@
|
|||
"\n",
|
||||
"def a_func():\n",
|
||||
" a_var = 'local value'\n",
|
||||
" print(a_var, '[ a_var inside a_func() ]')\n",
|
||||
" print(a_var, '[ a_var in a_func() ]')\n",
|
||||
"\n",
|
||||
"a_func()\n",
|
||||
"print(a_var, '[ a_var outside a_func() ]')"
|
||||
|
|
Loading…
Reference in New Issue
Block a user