From bea168e07bae1b13692e9be2b84ad800cb7c9e8f Mon Sep 17 00:00:00 2001 From: Sebastian Raschka Date: Tue, 29 Apr 2014 21:43:29 -0400 Subject: [PATCH] fixed for-loop example --- tutorials/scope_resolution_legb_rule.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/scope_resolution_legb_rule.ipynb b/tutorials/scope_resolution_legb_rule.ipynb index 4eb32d6..57d4490 100644 --- a/tutorials/scope_resolution_legb_rule.ipynb +++ b/tutorials/scope_resolution_legb_rule.ipynb @@ -503,8 +503,8 @@ "cell_type": "code", "collapsed": false, "input": [ - "print(global()) # prints global namespace\n", - "print(local()) # prints local namespace" + "print(globals()) # prints global namespace\n", + "print(locals()) # prints local namespace" ], "language": "python", "metadata": {},