Skip to content

Commit 0ecf1ff

Browse files
committed
More minor edits.
1 parent aad1a1d commit 0ecf1ff

File tree

1 file changed

+38
-36
lines changed

1 file changed

+38
-36
lines changed

Crash Course.ipynb

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -249,22 +249,11 @@
249249
},
250250
{
251251
"cell_type": "code",
252-
"execution_count": 6,
252+
"execution_count": null,
253253
"metadata": {
254254
"collapsed": false
255255
},
256-
"outputs": [
257-
{
258-
"data": {
259-
"text/plain": [
260-
"9.0"
261-
]
262-
},
263-
"execution_count": 6,
264-
"metadata": {},
265-
"output_type": "execute_result"
266-
}
267-
],
256+
"outputs": [],
268257
"source": [
269258
"sqrt(81)"
270259
]
@@ -375,7 +364,8 @@
375364
"evalue": "name 'volume' is not defined",
376365
"output_type": "error",
377366
"traceback": [
378-
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
367+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
368+
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
379369
"\u001b[0;32m<ipython-input-9-0c7fc58f9268>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mvolume\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
380370
"\u001b[0;31mNameError\u001b[0m: name 'volume' is not defined"
381371
]
@@ -394,11 +384,22 @@
394384
},
395385
{
396386
"cell_type": "code",
397-
"execution_count": null,
387+
"execution_count": 10,
398388
"metadata": {
399389
"collapsed": false
400390
},
401-
"outputs": [],
391+
"outputs": [
392+
{
393+
"data": {
394+
"text/plain": [
395+
"6000"
396+
]
397+
},
398+
"execution_count": 10,
399+
"metadata": {},
400+
"output_type": "execute_result"
401+
}
402+
],
402403
"source": [
403404
"depth = 10\n",
404405
"volume = area*depth\n",
@@ -420,17 +421,17 @@
420421
},
421422
{
422423
"cell_type": "code",
423-
"execution_count": 10,
424+
"execution_count": 11,
424425
"metadata": {
425426
"collapsed": false
426427
},
427428
"outputs": [
428429
{
429430
"ename": "SyntaxError",
430-
"evalue": "invalid syntax (<ipython-input-10-2b99136d4ec6>, line 1)",
431+
"evalue": "invalid syntax (<ipython-input-11-2b99136d4ec6>, line 1)",
431432
"output_type": "error",
432433
"traceback": [
433-
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-10-2b99136d4ec6>\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m return = 0\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
434+
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-11-2b99136d4ec6>\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m return = 0\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
434435
]
435436
}
436437
],
@@ -455,7 +456,7 @@
455456
},
456457
{
457458
"cell_type": "code",
458-
"execution_count": 11,
459+
"execution_count": 12,
459460
"metadata": {
460461
"collapsed": false
461462
},
@@ -466,7 +467,7 @@
466467
"'Hello, World!'"
467468
]
468469
},
469-
"execution_count": 11,
470+
"execution_count": 12,
470471
"metadata": {},
471472
"output_type": "execute_result"
472473
}
@@ -484,7 +485,7 @@
484485
},
485486
{
486487
"cell_type": "code",
487-
"execution_count": 12,
488+
"execution_count": 13,
488489
"metadata": {
489490
"collapsed": false
490491
},
@@ -495,7 +496,7 @@
495496
"'Hello, World!'"
496497
]
497498
},
498-
"execution_count": 12,
499+
"execution_count": 13,
499500
"metadata": {},
500501
"output_type": "execute_result"
501502
}
@@ -513,7 +514,7 @@
513514
},
514515
{
515516
"cell_type": "code",
516-
"execution_count": 13,
517+
"execution_count": 14,
517518
"metadata": {
518519
"collapsed": false
519520
},
@@ -524,7 +525,7 @@
524525
"\"He's a Rebel\""
525526
]
526527
},
527-
"execution_count": 13,
528+
"execution_count": 14,
528529
"metadata": {},
529530
"output_type": "execute_result"
530531
}
@@ -535,7 +536,7 @@
535536
},
536537
{
537538
"cell_type": "code",
538-
"execution_count": 14,
539+
"execution_count": 15,
539540
"metadata": {
540541
"collapsed": false
541542
},
@@ -546,7 +547,7 @@
546547
"'She asked, \"How are you today?\"'"
547548
]
548549
},
549-
"execution_count": 14,
550+
"execution_count": 15,
550551
"metadata": {},
551552
"output_type": "execute_result"
552553
}
@@ -564,7 +565,7 @@
564565
},
565566
{
566567
"cell_type": "code",
567-
"execution_count": 15,
568+
"execution_count": 16,
568569
"metadata": {
569570
"collapsed": false
570571
},
@@ -582,7 +583,7 @@
582583
},
583584
{
584585
"cell_type": "code",
585-
"execution_count": 16,
586+
"execution_count": 17,
586587
"metadata": {
587588
"collapsed": false
588589
},
@@ -608,7 +609,7 @@
608609
},
609610
{
610611
"cell_type": "code",
611-
"execution_count": 17,
612+
"execution_count": 18,
612613
"metadata": {
613614
"collapsed": false
614615
},
@@ -629,7 +630,7 @@
629630
"cell_type": "markdown",
630631
"metadata": {},
631632
"source": [
632-
"In the above snipped, the number 600 (stored in the variable \"area\") is converted into a string before being printed out."
633+
"In the above snippet, the number 600 (stored in the variable **area**) is converted into a string before being printed out."
633634
]
634635
},
635636
{
@@ -641,7 +642,7 @@
641642
},
642643
{
643644
"cell_type": "code",
644-
"execution_count": 18,
645+
"execution_count": 20,
645646
"metadata": {
646647
"collapsed": false
647648
},
@@ -650,12 +651,12 @@
650651
"name": "stdout",
651652
"output_type": "stream",
652653
"text": [
653-
"Hello,World!\n"
654+
"Hello, World!\n"
654655
]
655656
}
656657
],
657658
"source": [
658-
"statement = \"Hello,\" + \"World!\"\n",
659+
"statement = \"Hello, \" + \"World!\"\n",
659660
"print statement"
660661
]
661662
},
@@ -7377,8 +7378,9 @@
73777378
}
73787379
],
73797380
"metadata": {
7381+
"anaconda-cloud": {},
73807382
"kernelspec": {
7381-
"display_name": "Python 2",
7383+
"display_name": "Python [default]",
73827384
"language": "python",
73837385
"name": "python2"
73847386
},
@@ -7392,7 +7394,7 @@
73927394
"name": "python",
73937395
"nbconvert_exporter": "python",
73947396
"pygments_lexer": "ipython2",
7395-
"version": "2.7.6"
7397+
"version": "2.7.12"
73967398
}
73977399
},
73987400
"nbformat": 4,

0 commit comments

Comments
 (0)