diff options
author | kinitrupti | 2015-10-15 17:40:30 +0530 |
---|---|---|
committer | kinitrupti | 2015-10-15 17:40:30 +0530 |
commit | 4a735f833653551e3321fbe9a8e47faa879d282f (patch) | |
tree | db91b182e06d1695ad8db15d757f669ad929c0b6 /C++_Demystified:_A_Self-Teaching_Guide/chapter13.ipynb | |
parent | 78784b374b2d1a9be66eb4ad41470409e2bd4dfa (diff) | |
download | Python-Textbook-Companions-4a735f833653551e3321fbe9a8e47faa879d282f.tar.gz Python-Textbook-Companions-4a735f833653551e3321fbe9a8e47faa879d282f.tar.bz2 Python-Textbook-Companions-4a735f833653551e3321fbe9a8e47faa879d282f.zip |
solved errors
Diffstat (limited to 'C++_Demystified:_A_Self-Teaching_Guide/chapter13.ipynb')
-rwxr-xr-x | C++_Demystified:_A_Self-Teaching_Guide/chapter13.ipynb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/C++_Demystified:_A_Self-Teaching_Guide/chapter13.ipynb b/C++_Demystified:_A_Self-Teaching_Guide/chapter13.ipynb index a7e400b9..8c87053f 100755 --- a/C++_Demystified:_A_Self-Teaching_Guide/chapter13.ipynb +++ b/C++_Demystified:_A_Self-Teaching_Guide/chapter13.ipynb @@ -41,17 +41,14 @@ "metadata": {}, "outputs": [ { - "ename": "NameError", - "evalue": "name 'fp' is not defined", - "output_type": "pyerr", - "traceback": [ - "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)", - "\u001b[1;32m<ipython-input-1-112e202a5944>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[0;32m 4\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 5\u001b[0m \u001b[1;32mtry\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 6\u001b[1;33m \u001b[1;32mif\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mfp\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 7\u001b[0m \u001b[1;32mprint\u001b[0m \u001b[1;34m\"infile = \"\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mfp\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 8\u001b[0m \u001b[1;32mprint\u001b[0m \u001b[1;34m\"0\"\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n", - "\u001b[1;31mNameError\u001b[0m: name 'fp' is not defined" + "output_type": "stream", + "stream": "stdout", + "text": [ + "1\n" ] } ], - "prompt_number": 1 + "prompt_number": 4 }, { "cell_type": "heading", |