diff options
author | debashisdeb | 2014-06-20 15:42:42 +0530 |
---|---|---|
committer | debashisdeb | 2014-06-20 15:42:42 +0530 |
commit | 83c1bfceb1b681b4bb7253b47491be2d8b2014a1 (patch) | |
tree | f54eab21dd3d725d64a495fcd47c00d37abed004 /Beginning_C_By_Ivon_Horton/chapter6.ipynb | |
parent | a78126bbe4443e9526a64df9d8245c4af8843044 (diff) | |
download | Python-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.tar.gz Python-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.tar.bz2 Python-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.zip |
removing problem statements
Diffstat (limited to 'Beginning_C_By_Ivon_Horton/chapter6.ipynb')
-rw-r--r-- | Beginning_C_By_Ivon_Horton/chapter6.ipynb | 44 |
1 files changed, 12 insertions, 32 deletions
diff --git a/Beginning_C_By_Ivon_Horton/chapter6.ipynb b/Beginning_C_By_Ivon_Horton/chapter6.ipynb index fdf576c5..c05d45c7 100644 --- a/Beginning_C_By_Ivon_Horton/chapter6.ipynb +++ b/Beginning_C_By_Ivon_Horton/chapter6.ipynb @@ -1,6 +1,7 @@ { "metadata": { - "name": "" + "name": "", + "signature": "sha256:cc6cd32b3760ef9f8d727f2cbad62d4127abffa00d3c9ad693debfc7914ad190" }, "nbformat": 3, "nbformat_minor": 0, @@ -27,9 +28,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "\"\"\"\n", - "Displaying a string\n", - "\"\"\"\n", + "\n", "\n", "print \"The character \\\\0 is used to terminate a string.\"" ], @@ -58,9 +57,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "\"\"\"\n", - "Lengths\n", - "\"\"\"\n", + "\n", "\n", "str1 = \"To be or not to be\"\n", "str2 = \",that is a question\"\n", @@ -94,9 +91,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "\"\"\"\n", - "Arrays of strings\n", - "\"\"\"\n", + "\n", "\n", "str1 = \"Computers do what you tell them to do, not what you want them to do.\"\n", "str2 = \"When you put something in memory, remember where you put it.\"\n", @@ -147,9 +142,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "\"\"\"\n", - "Joining strings\n", - "\"\"\"\n", + "\n", "\n", "preamble = \"The joke is: \"\n", "str1 = \"My dog hasn\\'t got any nose.\\n\"\n", @@ -189,9 +182,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "\"\"\"\n", - "Comparing strings\n", - "\"\"\"\n", + "\n", "\n", "print \"Type in the first word (maximum 20 characters): \",\n", "word1 = raw_input()\n", @@ -219,9 +210,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "\"\"\"\n", - "A demonstration of seeking and finding\n", - "\"\"\"\n", + "\n", "\n", "str1 = \"This string contains the holy grail.\"\n", "str2 = \"the holy grail\"\n", @@ -265,10 +254,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "\"\"\"\n", - "Find all the words\n", - "note: program 7A in the book will remain same in Python\n", - "\"\"\"\n", + "\n", "\n", "print \"Enter some prose that is less than 1000 characters (go on typing hit enter to terminate):\"\n", "str1 = raw_input()\n", @@ -344,9 +330,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "\"\"\"\n", - "Testing characters in a string\n", - "\"\"\"\n", + "\n", "\n", "\n", "nLetters = 0\n", @@ -407,9 +391,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "\"\"\"\n", - "Finding occurrences of one string in another\n", - "\"\"\"\n", + "\n", "\n", "print \"Enter the string to be searched (less than 100 characters): \",\n", "text = raw_input()\n", @@ -481,9 +463,7 @@ "cell_type": "code", "collapsed": false, "input": [ - "\"\"\"\n", - "Analyzing Text\n", - "\"\"\"\n", + "\n", "\n", "import numpy\n", "\n", |