summaryrefslogtreecommitdiff
path: root/Beginning_C_By_Ivon_Horton/chapter9.ipynb
diff options
context:
space:
mode:
authordebashisdeb2014-06-20 15:42:42 +0530
committerdebashisdeb2014-06-20 15:42:42 +0530
commit83c1bfceb1b681b4bb7253b47491be2d8b2014a1 (patch)
treef54eab21dd3d725d64a495fcd47c00d37abed004 /Beginning_C_By_Ivon_Horton/chapter9.ipynb
parenta78126bbe4443e9526a64df9d8245c4af8843044 (diff)
downloadPython-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/chapter9.ipynb')
-rw-r--r--Beginning_C_By_Ivon_Horton/chapter9.ipynb41
1 files changed, 10 insertions, 31 deletions
diff --git a/Beginning_C_By_Ivon_Horton/chapter9.ipynb b/Beginning_C_By_Ivon_Horton/chapter9.ipynb
index d7adce09..6b5e2864 100644
--- a/Beginning_C_By_Ivon_Horton/chapter9.ipynb
+++ b/Beginning_C_By_Ivon_Horton/chapter9.ipynb
@@ -1,6 +1,7 @@
{
"metadata": {
- "name": ""
+ "name": "",
+ "signature": "sha256:6ada72776bf91dd75540d29fecfeda6a5cab8bde3c866cd455973111367e4933"
},
"nbformat": 3,
"nbformat_minor": 0,
@@ -27,9 +28,6 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Pointing to functions\n",
- "\"\"\"\n",
"\n",
"def sum(x, y):\n",
" return x + y\n",
@@ -79,9 +77,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Arrays of Pointers to functions\n",
- "\"\"\"\n",
+ "\n",
"\n",
"def sum(x, y):\n",
" return x + y\n",
@@ -135,9 +131,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Passing a Pointer to a function\n",
- "\"\"\"\n",
+ "\n",
"\n",
"def sum(x, y):\n",
" return x + y\n",
@@ -187,10 +181,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Static versus automatic variables\n",
- "note: there is no static in python. Output will be different from book.\n",
- "\"\"\"\n",
+ "\n",
"\n",
"def test1():\n",
" count = 0\n",
@@ -240,10 +231,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Global variables\n",
- "note: output will vary from textbook because of static variable\n",
- "\"\"\"\n",
+ "\n",
"\n",
"count = 0\n",
"\n",
@@ -295,9 +283,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Calculating factorials using recursion\n",
- "\"\"\"\n",
+ "\n",
"\n",
"def factorial(n):\n",
" if(n < 2):\n",
@@ -348,10 +334,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Calculating an average using variable argument lists\n",
- "note: output will vary from that given in textbook\n",
- "\"\"\"\n",
+ "\n",
"\n",
"def average(*arg):\n",
" sum = arg[0] + arg[1]\n",
@@ -399,9 +382,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "A program to list the command line arguments\n",
- "\"\"\"\n",
+ "\n",
"\n",
"import sys\n",
"\n",
@@ -440,9 +421,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "REVERSI An Othello type game\n",
- "\"\"\"\n",
+ "\n",
"\n",
"SIZE = 6\n",
"comp_c = '@'\n",