Merge pull request #17 from kzhk75/patch-2

Update scope_resolution_legb_rule.ipynb
This commit is contained in:
Sebastian Raschka 2014-10-23 18:45:31 -04:00
commit abb753a4d3

View File

@ -416,7 +416,7 @@
"global value [ a_var outside a_func() ]</pre>\n",
"\n",
"**c)** \n",
"<pre>global value [ a_var in a_func() ] \n",
"<pre>global value [ a_var inside a_func() ] \n",
"global value [ a_var outside a_func() ]</pre>\n",
"\n",
"\n"
@ -457,7 +457,7 @@
"\n",
"def a_func():\n",
" a_var = 'local value'\n",
" print(a_var, '[ a_var in a_func() ]')\n",
" print(a_var, '[ a_var inside a_func() ]')\n",
"\n",
"a_func()\n",
"print(a_var, '[ a_var outside a_func() ]')"
@ -475,11 +475,11 @@
"<pre>raises an error</pre>\n",
"\n",
"**b)** \n",
"<pre>local value [ a_var in a_func() ]\n",
"<pre>local value [ a_var inside a_func() ]\n",
"global value [ a_var outside a_func() ]</pre>\n",
"\n",
"**c)** \n",
"<pre>global value [ a_var in a_func() ] \n",
"<pre>global value [ a_var inside a_func() ] \n",
"global value [ a_var outside a_func() ]</pre>\n"
]
},