|
83 | 83 | {
|
84 | 84 | "cell_type": "code",
|
85 | 85 | "execution_count": 3,
|
86 |
| - "metadata": {}, |
| 86 | + "metadata": { |
| 87 | + "collapsed": true |
| 88 | + }, |
87 | 89 | "outputs": [],
|
88 | 90 | "source": [
|
89 | 91 |
|
90 | 92 | ]
|
91 | 93 | },
|
| 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 | + }, |
92 | 101 | {
|
93 | 102 | "cell_type": "markdown",
|
94 | 103 | "metadata": {},
|
|
102 | 111 | },
|
103 | 112 | {
|
104 | 113 | "cell_type": "code",
|
105 |
| - "execution_count": 4, |
| 114 | + "execution_count": null, |
106 | 115 | "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": [], |
119 | 117 | "source": [
|
120 | 118 | "email"
|
121 | 119 | ]
|
122 | 120 | },
|
| 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 | + }, |
123 | 128 | {
|
124 | 129 | "cell_type": "markdown",
|
125 | 130 | "metadata": {},
|
|
129 | 134 | },
|
130 | 135 | {
|
131 | 136 | "cell_type": "code",
|
132 |
| - "execution_count": 5, |
| 137 | + "execution_count": null, |
133 | 138 | "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": [], |
146 | 140 | "source": [
|
147 | 141 | "website = \"vandelay.com\"\n",
|
148 | 142 | "website"
|
|
185 | 179 | },
|
186 | 180 | {
|
187 | 181 | "cell_type": "code",
|
188 |
| - "execution_count": 7, |
| 182 | + "execution_count": null, |
189 | 183 | "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": [], |
202 | 185 | "source": [
|
203 | 186 | "name = 'Art Vandalay'\n",
|
204 | 187 | "name"
|
|
228 | 211 | }
|
229 | 212 | ],
|
230 | 213 | "source": [
|
231 |
| - "email" |
| 214 | + "email\n" |
232 | 215 | ]
|
233 | 216 | },
|
234 | 217 | {
|
|
247 | 230 | },
|
248 | 231 | {
|
249 | 232 | "cell_type": "code",
|
250 |
| - "execution_count": 9, |
| 233 | + "execution_count": null, |
251 | 234 | "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": [], |
264 | 236 | "source": [
|
265 | 237 | "\"Send an email to Art Vandalay at '[email protected]' to tell say how nice it was meeting yesterday.\""
|
266 | 238 | ]
|
|
274 | 246 | },
|
275 | 247 | {
|
276 | 248 | "cell_type": "code",
|
277 |
| - "execution_count": 10, |
| 249 | + "execution_count": null, |
278 | 250 | "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": [], |
291 | 252 | "source": [
|
292 | 253 | "\"Send an email to \" + name + \" at \" + email + \" to say how nice it was meeting yesterday.\""
|
293 | 254 | ]
|
|
301 | 262 | },
|
302 | 263 | {
|
303 | 264 | "cell_type": "code",
|
304 |
| - "execution_count": 11, |
305 |
| - "metadata": {}, |
| 265 | + "execution_count": null, |
| 266 | + "metadata": { |
| 267 | + "collapsed": true |
| 268 | + }, |
306 | 269 | "outputs": [],
|
307 | 270 | "source": [
|
308 | 271 | "name = 'Liz Kaplan'\n",
|
|
318 | 281 | },
|
319 | 282 | {
|
320 | 283 | "cell_type": "code",
|
321 |
| - "execution_count": 12, |
| 284 | + "execution_count": null, |
322 | 285 | "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": [], |
335 | 287 | "source": [
|
336 | 288 | "name # 'Liz Kaplan'"
|
337 | 289 | ]
|
338 | 290 | },
|
339 | 291 | {
|
340 | 292 | "cell_type": "code",
|
341 |
| - "execution_count": 13, |
| 293 | + "execution_count": null, |
342 | 294 | "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": [], |
355 | 296 | "source": [
|
356 | 297 |
|
357 | 298 | ]
|
|
365 | 306 | },
|
366 | 307 | {
|
367 | 308 | "cell_type": "code",
|
368 |
| - "execution_count": 14, |
| 309 | + "execution_count": null, |
369 | 310 | "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": [], |
382 | 312 | "source": [
|
383 | 313 | "\"Send an email to \" + name + \" at \" + email + \" to tell him how nice it was meeting him yesterday.\""
|
384 | 314 | ]
|
|
406 | 336 | },
|
407 | 337 | {
|
408 | 338 | "cell_type": "code",
|
409 |
| - "execution_count": 15, |
| 339 | + "execution_count": null, |
410 | 340 | "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": [], |
423 | 342 | "source": [
|
424 | 343 | "name"
|
425 | 344 | ]
|
426 | 345 | },
|
427 | 346 | {
|
428 | 347 | "cell_type": "code",
|
429 |
| - "execution_count": 16, |
| 348 | + "execution_count": null, |
430 | 349 | "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": [], |
443 | 351 | "source": [
|
444 | 352 | "name.upper()"
|
445 | 353 | ]
|
446 | 354 | },
|
447 | 355 | {
|
448 | 356 | "cell_type": "code",
|
449 |
| - "execution_count": 17, |
| 357 | + "execution_count": null, |
450 | 358 | "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": [], |
463 | 360 | "source": [
|
464 | 361 | "name.title()"
|
465 | 362 | ]
|
|
474 | 371 | {
|
475 | 372 | "cell_type": "code",
|
476 | 373 | "execution_count": 18,
|
477 |
| - "metadata": {}, |
| 374 | + "metadata": { |
| 375 | + "collapsed": true |
| 376 | + }, |
478 | 377 | "outputs": [],
|
479 | 378 | "source": [
|
480 | 379 | "name = 42"
|
|
510 | 409 | },
|
511 | 410 | {
|
512 | 411 | "cell_type": "code",
|
513 |
| - "execution_count": 20, |
| 412 | + "execution_count": null, |
514 | 413 | "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": [], |
527 | 415 | "source": [
|
528 | 416 | "name"
|
529 | 417 | ]
|
|
537 | 425 | },
|
538 | 426 | {
|
539 | 427 | "cell_type": "code",
|
540 |
| - "execution_count": 21, |
| 428 | + "execution_count": null, |
541 | 429 | "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": [], |
554 | 431 | "source": [
|
555 | 432 | "name = 'Liz Kaplan'\n",
|
556 | 433 | "name"
|
|
589 | 466 | "name": "python",
|
590 | 467 | "nbconvert_exporter": "python",
|
591 | 468 | "pygments_lexer": "ipython3",
|
592 |
| - "version": "3.6.4" |
| 469 | + "version": "3.6.1" |
593 | 470 | }
|
594 | 471 | },
|
595 | 472 | "nbformat": 4,
|
|
0 commit comments