Skip to content

Commit 737dd11

Browse files
committed
small revisions
1 parent fea443d commit 737dd11

File tree

1 file changed

+52
-175
lines changed

1 file changed

+52
-175
lines changed

index.ipynb

Lines changed: 52 additions & 175 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,21 @@
8383
{
8484
"cell_type": "code",
8585
"execution_count": 3,
86-
"metadata": {},
86+
"metadata": {
87+
"collapsed": true
88+
},
8789
"outputs": [],
8890
"source": [
8991
"email = \"[email protected]\""
9092
]
9193
},
94+
{
95+
"cell_type": "markdown",
96+
"metadata": {},
97+
"source": [
98+
"> For this, and all of the subsequent code in gray boxes, you should press shift + enter to ensure that the code executes. If you do not do so with the line above for example, then email when we reference email in the lines that follow, Jupyter will throw an error indicating that the variable is undefined. So it is not enough to just type the correct code, we need to run shift + enter on our gray boxes to run this code."
99+
]
100+
},
92101
{
93102
"cell_type": "markdown",
94103
"metadata": {},
@@ -102,24 +111,20 @@
102111
},
103112
{
104113
"cell_type": "code",
105-
"execution_count": 4,
114+
"execution_count": null,
106115
"metadata": {},
107-
"outputs": [
108-
{
109-
"data": {
110-
"text/plain": [
111-
112-
]
113-
},
114-
"execution_count": 4,
115-
"metadata": {},
116-
"output_type": "execute_result"
117-
}
118-
],
116+
"outputs": [],
119117
"source": [
120118
"email"
121119
]
122120
},
121+
{
122+
"cell_type": "markdown",
123+
"metadata": {},
124+
"source": [
125+
"> Press shift + enter on the gray box above to see what `email` equals."
126+
]
127+
},
123128
{
124129
"cell_type": "markdown",
125130
"metadata": {},
@@ -129,20 +134,9 @@
129134
},
130135
{
131136
"cell_type": "code",
132-
"execution_count": 5,
137+
"execution_count": null,
133138
"metadata": {},
134-
"outputs": [
135-
{
136-
"data": {
137-
"text/plain": [
138-
"'vandelay.com'"
139-
]
140-
},
141-
"execution_count": 5,
142-
"metadata": {},
143-
"output_type": "execute_result"
144-
}
145-
],
139+
"outputs": [],
146140
"source": [
147141
"website = \"vandelay.com\"\n",
148142
"website"
@@ -185,20 +179,9 @@
185179
},
186180
{
187181
"cell_type": "code",
188-
"execution_count": 7,
182+
"execution_count": null,
189183
"metadata": {},
190-
"outputs": [
191-
{
192-
"data": {
193-
"text/plain": [
194-
"'Art Vandalay'"
195-
]
196-
},
197-
"execution_count": 7,
198-
"metadata": {},
199-
"output_type": "execute_result"
200-
}
201-
],
184+
"outputs": [],
202185
"source": [
203186
"name = 'Art Vandalay'\n",
204187
"name"
@@ -228,7 +211,7 @@
228211
}
229212
],
230213
"source": [
231-
"email"
214+
"email\n"
232215
]
233216
},
234217
{
@@ -247,20 +230,9 @@
247230
},
248231
{
249232
"cell_type": "code",
250-
"execution_count": 9,
233+
"execution_count": null,
251234
"metadata": {},
252-
"outputs": [
253-
{
254-
"data": {
255-
"text/plain": [
256-
"\"Send an email to Art Vandalay at '[email protected]' to tell say how nice it was meeting yesterday.\""
257-
]
258-
},
259-
"execution_count": 9,
260-
"metadata": {},
261-
"output_type": "execute_result"
262-
}
263-
],
235+
"outputs": [],
264236
"source": [
265237
"\"Send an email to Art Vandalay at '[email protected]' to tell say how nice it was meeting yesterday.\""
266238
]
@@ -274,20 +246,9 @@
274246
},
275247
{
276248
"cell_type": "code",
277-
"execution_count": 10,
249+
"execution_count": null,
278250
"metadata": {},
279-
"outputs": [
280-
{
281-
"data": {
282-
"text/plain": [
283-
"'Send an email to Art Vandalay at [email protected] to say how nice it was meeting yesterday.'"
284-
]
285-
},
286-
"execution_count": 10,
287-
"metadata": {},
288-
"output_type": "execute_result"
289-
}
290-
],
251+
"outputs": [],
291252
"source": [
292253
"\"Send an email to \" + name + \" at \" + email + \" to say how nice it was meeting yesterday.\""
293254
]
@@ -301,8 +262,10 @@
301262
},
302263
{
303264
"cell_type": "code",
304-
"execution_count": 11,
305-
"metadata": {},
265+
"execution_count": null,
266+
"metadata": {
267+
"collapsed": true
268+
},
306269
"outputs": [],
307270
"source": [
308271
"name = 'Liz Kaplan'\n",
@@ -318,40 +281,18 @@
318281
},
319282
{
320283
"cell_type": "code",
321-
"execution_count": 12,
284+
"execution_count": null,
322285
"metadata": {},
323-
"outputs": [
324-
{
325-
"data": {
326-
"text/plain": [
327-
"'Liz Kaplan'"
328-
]
329-
},
330-
"execution_count": 12,
331-
"metadata": {},
332-
"output_type": "execute_result"
333-
}
334-
],
286+
"outputs": [],
335287
"source": [
336288
"name # 'Liz Kaplan'"
337289
]
338290
},
339291
{
340292
"cell_type": "code",
341-
"execution_count": 13,
293+
"execution_count": null,
342294
"metadata": {},
343-
"outputs": [
344-
{
345-
"data": {
346-
"text/plain": [
347-
348-
]
349-
},
350-
"execution_count": 13,
351-
"metadata": {},
352-
"output_type": "execute_result"
353-
}
354-
],
295+
"outputs": [],
355296
"source": [
356297
"email # '[email protected]'"
357298
]
@@ -365,20 +306,9 @@
365306
},
366307
{
367308
"cell_type": "code",
368-
"execution_count": 14,
309+
"execution_count": null,
369310
"metadata": {},
370-
"outputs": [
371-
{
372-
"data": {
373-
"text/plain": [
374-
"'Send an email to Liz Kaplan at [email protected] to tell him how nice it was meeting him yesterday.'"
375-
]
376-
},
377-
"execution_count": 14,
378-
"metadata": {},
379-
"output_type": "execute_result"
380-
}
381-
],
311+
"outputs": [],
382312
"source": [
383313
"\"Send an email to \" + name + \" at \" + email + \" to tell him how nice it was meeting him yesterday.\""
384314
]
@@ -406,60 +336,27 @@
406336
},
407337
{
408338
"cell_type": "code",
409-
"execution_count": 15,
339+
"execution_count": null,
410340
"metadata": {},
411-
"outputs": [
412-
{
413-
"data": {
414-
"text/plain": [
415-
"'Liz Kaplan'"
416-
]
417-
},
418-
"execution_count": 15,
419-
"metadata": {},
420-
"output_type": "execute_result"
421-
}
422-
],
341+
"outputs": [],
423342
"source": [
424343
"name"
425344
]
426345
},
427346
{
428347
"cell_type": "code",
429-
"execution_count": 16,
348+
"execution_count": null,
430349
"metadata": {},
431-
"outputs": [
432-
{
433-
"data": {
434-
"text/plain": [
435-
"'LIZ KAPLAN'"
436-
]
437-
},
438-
"execution_count": 16,
439-
"metadata": {},
440-
"output_type": "execute_result"
441-
}
442-
],
350+
"outputs": [],
443351
"source": [
444352
"name.upper()"
445353
]
446354
},
447355
{
448356
"cell_type": "code",
449-
"execution_count": 17,
357+
"execution_count": null,
450358
"metadata": {},
451-
"outputs": [
452-
{
453-
"data": {
454-
"text/plain": [
455-
"'Liz Kaplan'"
456-
]
457-
},
458-
"execution_count": 17,
459-
"metadata": {},
460-
"output_type": "execute_result"
461-
}
462-
],
359+
"outputs": [],
463360
"source": [
464361
"name.title()"
465362
]
@@ -474,7 +371,9 @@
474371
{
475372
"cell_type": "code",
476373
"execution_count": 18,
477-
"metadata": {},
374+
"metadata": {
375+
"collapsed": true
376+
},
478377
"outputs": [],
479378
"source": [
480379
"name = 42"
@@ -510,20 +409,9 @@
510409
},
511410
{
512411
"cell_type": "code",
513-
"execution_count": 20,
412+
"execution_count": null,
514413
"metadata": {},
515-
"outputs": [
516-
{
517-
"data": {
518-
"text/plain": [
519-
"42"
520-
]
521-
},
522-
"execution_count": 20,
523-
"metadata": {},
524-
"output_type": "execute_result"
525-
}
526-
],
414+
"outputs": [],
527415
"source": [
528416
"name"
529417
]
@@ -537,20 +425,9 @@
537425
},
538426
{
539427
"cell_type": "code",
540-
"execution_count": 21,
428+
"execution_count": null,
541429
"metadata": {},
542-
"outputs": [
543-
{
544-
"data": {
545-
"text/plain": [
546-
"'Liz Kaplan'"
547-
]
548-
},
549-
"execution_count": 21,
550-
"metadata": {},
551-
"output_type": "execute_result"
552-
}
553-
],
430+
"outputs": [],
554431
"source": [
555432
"name = 'Liz Kaplan'\n",
556433
"name"
@@ -589,7 +466,7 @@
589466
"name": "python",
590467
"nbconvert_exporter": "python",
591468
"pygments_lexer": "ipython3",
592-
"version": "3.6.4"
469+
"version": "3.6.1"
593470
}
594471
},
595472
"nbformat": 4,

0 commit comments

Comments
 (0)