diff options
author | kinitrupti | 2015-10-15 17:40:30 +0530 |
---|---|---|
committer | kinitrupti | 2015-10-15 17:40:30 +0530 |
commit | 8e4f9ec414f553746330423a974684bbac2163a8 (patch) | |
tree | 7d91d4997a3962c3ad62355ad369f7b6b7738ddb /Mastering_C | |
parent | 79c8f29f70cc014d5fd8b9900d3c19309134bc1d (diff) | |
download | Python-Textbook-Companions-8e4f9ec414f553746330423a974684bbac2163a8.tar.gz Python-Textbook-Companions-8e4f9ec414f553746330423a974684bbac2163a8.tar.bz2 Python-Textbook-Companions-8e4f9ec414f553746330423a974684bbac2163a8.zip |
solved errors
Diffstat (limited to 'Mastering_C')
-rwxr-xr-x | Mastering_C/.ipynb_checkpoints/chapter1-checkpoint.ipynb | 169 | ||||
-rwxr-xr-x | Mastering_C/chapter1.ipynb | 13 |
2 files changed, 175 insertions, 7 deletions
diff --git a/Mastering_C/.ipynb_checkpoints/chapter1-checkpoint.ipynb b/Mastering_C/.ipynb_checkpoints/chapter1-checkpoint.ipynb new file mode 100755 index 00000000..271dc0b9 --- /dev/null +++ b/Mastering_C/.ipynb_checkpoints/chapter1-checkpoint.ipynb @@ -0,0 +1,169 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:f3ff9d889b7b7951c347d942d053d9fde4d57e52c21d53b779e2930b738a9f69" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 1: Introduction" + ] + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 1, page no. 18" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "print \"Hello World\"\n", + "print \"Bye.\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Hello World\n", + "Bye\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 2, page no. 24" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "print \"Hello World\"\n", + "#This program will give error" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Hello World\n" + ] + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 3, page no. 24" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "print \"Hello World\"\n", + "print \"Bye.\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Hello World\n", + "Bye.\n" + ] + } + ], + "prompt_number": 3 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 4, page no. 24" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "print \"Hello World\";print \"Bye.\"\n" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Hello World\n", + "Bye.\n" + ] + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": [ + "Example 5, page no. 25" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "print \"\\\n", + " Hello World\"\n", + "\n", + "print \"\\\n", + " Bye.\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + " Hello World\n", + " Bye.\n" + ] + } + ], + "prompt_number": 6 + } + ], + "metadata": {} + } + ] +}
\ No newline at end of file diff --git a/Mastering_C/chapter1.ipynb b/Mastering_C/chapter1.ipynb index b1a0ed0e..271dc0b9 100755 --- a/Mastering_C/chapter1.ipynb +++ b/Mastering_C/chapter1.ipynb @@ -57,22 +57,21 @@ "cell_type": "code", "collapsed": false, "input": [ - "Print \"Hello World\"\n", + "print \"Hello World\"\n", "#This program will give error" ], "language": "python", "metadata": {}, "outputs": [ { - "ename": "SyntaxError", - "evalue": "invalid syntax (<ipython-input-2-9028d474ee90>, line 1)", - "output_type": "pyerr", - "traceback": [ - "\u001b[1;36m File \u001b[1;32m\"<ipython-input-2-9028d474ee90>\"\u001b[1;36m, line \u001b[1;32m1\u001b[0m\n\u001b[1;33m Print \"Hello World\"\u001b[0m\n\u001b[1;37m ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n" + "output_type": "stream", + "stream": "stdout", + "text": [ + "Hello World\n" ] } ], - "prompt_number": 2 + "prompt_number": 1 }, { "cell_type": "heading", |