{'_dh': [u'/home/tcloudost/Documents/git_repositories/python-batches/batch-61'], '__': '', '__builtin__': <module '__builtin__' (built-in)>, '_iii': u'print new() # 1\nprint a ', 'quit': <IPython.core.autocall.ZMQExitAutocall object at 0x7fa6d43e0210>, '_i9': u'# calling the function.\nprint myfunc()\nprint myfunc()', '_i8': u'# return is not a print statement.\n# return marks the end of the function.\n\n# defin\ndef myfunc():\n print "hey there"\n print "how are you"\n print "hope you are fine"\n return "hello world!!!"\n ', '_i7': u'print myfunc()\nprint myfunc()', '_i6': u'print myfunc()\nprint myfunc()', '_i5': u'# return is not a print statement.\n# return marks the end of the function.\ndef myfunc():\n return "hello world!!!"\n print "hey there"\n print "how are you"\n print "hope you are fine"', '_i4': u'print myfunc()\nprint myfunc()', '_i3': u'def myfunc():\n return "hello world!!!"', '_i2': u'print myfunc()\nprint myfunc()', '_i1': u'def myfunc():\n print "hello world!!!"', 'exit': <IPython.core.autocall.ZMQExitAutocall object at 0x7fa6d43e0210>, 'get_ipython': <bound method ZMQInteractiveShell.get_ipython of <ipykernel.zmqshell.ZMQInteractiveShell object at 0x7fa6dd043950>>, '_i': u'print new() # 10\nprint y # 10', 'new': <function new at 0x7fa6d429a5f0>, '_i24': u'print new() # 10\nprint y # 10', '_i14': u'# calling the function.\nprint myfunc()\nprint myfunc()', '_i22': u'print new() # 1\nprint a ', '__doc__': 'Automatically created module for IPython interactive environment', '_i20': u'print new\nprint type(new)', '_i21': u'print new\nprint type(new)', 'myfunc': <function myfunc at 0x7fa6d433c1b8>, '_ii': u'# case II\ny = 10\n\ndef new():\n print locals()\n return y', '__builtins__': <module '__builtin__' (built-in)>, 'In': ['', u'def myfunc():\n print "hello world!!!"', u'print myfunc()\nprint myfunc()', u'def myfunc():\n return "hello world!!!"', u'print myfunc()\nprint myfunc()', u'# return is not a print statement.\n# return marks the end of the function.\ndef myfunc():\n return "hello world!!!"\n print "hey there"\n print "how are you"\n print "hope you are fine"', u'print myfunc()\nprint myfunc()', u'print myfunc()\nprint myfunc()', u'# return is not a print statement.\n# return marks the end of the function.\n\n# defin\ndef myfunc():\n print "hey there"\n print "how are you"\n print "hope you are fine"\n return "hello world!!!"\n ', u'# calling the function.\nprint myfunc()\nprint myfunc()', u'# return is not a print statement.\n# return marks the end of the function.\n\n# defin\ndef myfunc():\n print "hey there"\n print "how are you"\n print "hope you are fine"\n print "hello world!!!"\n ', u'# calling the function.\nprint myfunc()\nprint myfunc()', u'# calling the function.\nprint myfunc()\nprint myfunc()', u'# return is not a print statement.\n# return marks the end of the function.\n\n# defin\ndef myfunc():\n print "hey there"\n print "how are you"\n print "hope you are fine"\n return "hello world!!!"\n ', u'# calling the function.\nprint myfunc()\nprint myfunc()', u'# scope of function\n# scope or namespaces\n\ndef new():\n a = 1\n return a', u'print new\nprint type(new)', u'print new() # 1\nprint a ', u'# if i want to save the value of "a" outside the function.\n# we can trap the return value\n\nz = new()\nprint z', u'# scope of function\n# scope or namespaces\n# any variable defined inside a function is available only during the runtime of function.\n# locals -> what are the variables available to us locally.\n\n\ndef new():\n a = 1\n print locals()\n return a', u'print new\nprint type(new)', u'print new\nprint type(new)', u'print new() # 1\nprint a ', u'# case II\ny = 10\n\ndef new():\n print locals()\n return y', u'print new() # 10\nprint y # 10', u'print globals()'], '__name__': '__main__', '___': '', '_': '', '_sh': <module 'IPython.core.shadowns' from '/usr/local/lib/python2.7/dist-packages/IPython/core/shadowns.pyc'>, '_i18': u'# if i want to save the value of "a" outside the function.\n# we can trap the return value\n\nz = new()\nprint z', '_i25': u'print globals()', '_i23': u'# case II\ny = 10\n\ndef new():\n print locals()\n return y', '_i13': u'# return is not a print statement.\n# return marks the end of the function.\n\n# defin\ndef myfunc():\n print "hey there"\n print "how are you"\n print "hope you are fine"\n return "hello world!!!"\n ', '_i12': u'# calling the function.\nprint myfunc()\nprint myfunc()', '_i11': u'# calling the function.\nprint myfunc()\nprint myfunc()', '_i10': u'# return is not a print statement.\n# return marks the end of the function.\n\n# defin\ndef myfunc():\n print "hey there"\n print "how are you"\n print "hope you are fine"\n print "hello world!!!"\n ', '_i17': u'print new() # 1\nprint a ', '_i16': u'print new\nprint type(new)', '_i15': u'# scope of function\n# scope or namespaces\n\ndef new():\n a = 1\n return a', '_ih': ['', u'def myfunc():\n print "hello world!!!"', u'print myfunc()\nprint myfunc()', u'def myfunc():\n return "hello world!!!"', u'print myfunc()\nprint myfunc()', u'# return is not a print statement.\n# return marks the end of the function.\ndef myfunc():\n return "hello world!!!"\n print "hey there"\n print "how are you"\n print "hope you are fine"', u'print myfunc()\nprint myfunc()', u'print myfunc()\nprint myfunc()', u'# return is not a print statement.\n# return marks the end of the function.\n\n# defin\ndef myfunc():\n print "hey there"\n print "how are you"\n print "hope you are fine"\n return "hello world!!!"\n ', u'# calling the function.\nprint myfunc()\nprint myfunc()', u'# return is not a print statement.\n# return marks the end of the function.\n\n# defin\ndef myfunc():\n print "hey there"\n print "how are you"\n print "hope you are fine"\n print "hello world!!!"\n ', u'# calling the function.\nprint myfunc()\nprint myfunc()', u'# calling the function.\nprint myfunc()\nprint myfunc()', u'# return is not a print statement.\n# return marks the end of the function.\n\n# defin\ndef myfunc():\n print "hey there"\n print "how are you"\n print "hope you are fine"\n return "hello world!!!"\n ', u'# calling the function.\nprint myfunc()\nprint myfunc()', u'# scope of function\n# scope or namespaces\n\ndef new():\n a = 1\n return a', u'print new\nprint type(new)', u'print new() # 1\nprint a ', u'# if i want to save the value of "a" outside the function.\n# we can trap the return value\n\nz = new()\nprint z', u'# scope of function\n# scope or namespaces\n# any variable defined inside a function is available only during the runtime of function.\n# locals -> what are the variables available to us locally.\n\n\ndef new():\n a = 1\n print locals()\n return a', u'print new\nprint type(new)', u'print new\nprint type(new)', u'print new() # 1\nprint a ', u'# case II\ny = 10\n\ndef new():\n print locals()\n return y', u'print new() # 10\nprint y # 10', u'print globals()'], 'y': 10, '_i19': u'# scope of function\n# scope or namespaces\n# any variable defined inside a function is available only during the runtime of function.\n# locals -> what are the variables available to us locally.\n\n\ndef new():\n a = 1\n print locals()\n return a', 'z': 1, '_oh': {}, 'Out': {}}