summaryrefslogtreecommitdiff
path: root/Beginning_C_By_Ivon_Horton/chapter5.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'Beginning_C_By_Ivon_Horton/chapter5.ipynb')
-rw-r--r--Beginning_C_By_Ivon_Horton/chapter5.ipynb35
1 files changed, 10 insertions, 25 deletions
diff --git a/Beginning_C_By_Ivon_Horton/chapter5.ipynb b/Beginning_C_By_Ivon_Horton/chapter5.ipynb
index 3b34352d..8e195f37 100644
--- a/Beginning_C_By_Ivon_Horton/chapter5.ipynb
+++ b/Beginning_C_By_Ivon_Horton/chapter5.ipynb
@@ -1,6 +1,7 @@
{
"metadata": {
- "name": ""
+ "name": "",
+ "signature": "sha256:a29cdeb847e548d8c74cdb11f8f6f17380a9a763c13e45e4e17605b4ec6cf4a6"
},
"nbformat": 3,
"nbformat_minor": 0,
@@ -27,9 +28,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Averaging ten grades without storing them\n",
- "\"\"\"\n",
+ "\n",
"\n",
"count = 10\n",
"sum = 0\n",
@@ -217,9 +216,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Averaging ten grades - storing values the hard way\n",
- "\"\"\"\n",
+ "\n",
"\n",
"sum = 0\n",
"average = 0.0\n",
@@ -361,9 +358,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Averaging ten grades - storing the values the easy way\n",
- "\"\"\"\n",
+ "\n",
"\n",
"grades = []\n",
"count = 10\n",
@@ -394,9 +389,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Reusing the numbers stored\n",
- "\"\"\"\n",
+ "\n",
"\n",
"grades = []\n",
"count = 10\n",
@@ -599,9 +592,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Using the & operator\n",
- "\"\"\"\n",
+ "\n",
"import sys\n",
"\n",
"a = 1\n",
@@ -652,9 +643,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Know your hat size - if you dare...\n",
- "\"\"\"\n",
+ "\n",
"\n",
"size = [['6', '6', '6', '6', '7', '7', '7', '7', '7', '7', '7', '7'],\n",
" ['1', '5', '3', '7', ' ', '1', '1', '3', '1', '5', '3', '7'],\n",
@@ -720,9 +709,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Averaging a variable number of grades\n",
- "\"\"\"\n",
+ "\n",
"\n",
"print \"Enter the number of grades: \",\n",
"nGrades = int(raw_input())\n",
@@ -864,9 +851,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "\"\"\"\n",
- "Tic-Tac-Toe\n",
- "\"\"\"\n",
+ "\n",
"\n",
"player = 0\n",
"winner = 0\n",