Skip to content

Commit 4cc5c35

Browse files
committed
updated Ch05
1 parent 03f29a5 commit 4cc5c35

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

Ch05-Iterations.ipynb

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,23 @@
55
"metadata": {},
66
"source": [
77
"# Iteration/Loop\n",
8-
"- make computer repeatedly execute some block of code\n",
9-
"- **for, while, break, continue, in, for ... else, while... else**"
8+
"life is full of loops; everyday routines such as going to college, cooking food, slicing vegetables, etc.\n",
9+
"\n",
10+
"- loops make computer repeatedly execute some block of code\n",
11+
" - **for, while, break, continue, in, for ... else, while... else**\n",
12+
" \n",
13+
"### Slice a carrot\n",
14+
"- get cutting board\n",
15+
"- get knife\n",
16+
"- place carrot on cutting board\n",
17+
"- lift knife\n",
18+
"- advance carrot\n",
19+
"- slice carrot\n",
20+
"- if you see only your finger, then quit \n",
21+
"- else go to step 4\n",
22+
" - step 4-7 form a loop!\n",
23+
"\n",
24+
"\n"
1025
]
1126
},
1227
{
@@ -299,7 +314,7 @@
299314
"name": "python",
300315
"nbconvert_exporter": "python",
301316
"pygments_lexer": "ipython3",
302-
"version": "3.6.2"
317+
"version": "3.7.2"
303318
}
304319
},
305320
"nbformat": 4,

0 commit comments

Comments
 (0)