Skip to content

Commit 06fa40e

Browse files
committed
2 parents d4a739f + 73965bd commit 06fa40e

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.ipynb_checkpoints/Crash Course-checkpoint.ipynb

Crash Course.ipynb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@
442442
"cell_type": "markdown",
443443
"metadata": {},
444444
"source": [
445-
"The [Python Tutorial](http://docs.python.org/2/tutorial/introduction.html#using-python-as-a-calculator) has more on using Python as an interactive shell. The [IPython tutorial](http://ipython.org/ipython-doc/dev/interactive/tutorial.html) makes a nice complement to this, since IPython has a much more sophisticated iteractive shell."
445+
"The [Python Tutorial](http://docs.python.org/2/tutorial/introduction.html#using-python-as-a-calculator) has more on using Python as an interactive shell. The IPython [documentation](http://ipython.readthedocs.io/en/stable/) makes a nice complement to this, since IPython has a much more sophisticated iteractive shell. In particular, have a look at the \"Using IPython for interactive work\" section of the website."
446446
]
447447
},
448448
{
@@ -1024,7 +1024,7 @@
10241024
"metadata": {},
10251025
"source": [
10261026
"## Iteration, Indentation, and Blocks\n",
1027-
"One of the most useful things you can do with lists is to *iterate* through them, i.e. to go through each element one at a time. To do this in Python, we use the **for** statement:"
1027+
"One of the most useful things you can do with lists is to *iterate* through them, i.e. to go through each element one at a time. To do this in Python, we use the `for` statement:"
10281028
]
10291029
},
10301030
{
@@ -1057,7 +1057,7 @@
10571057
"cell_type": "markdown",
10581058
"metadata": {},
10591059
"source": [
1060-
"This code snippet goes through each element of the list called **days_of_the_week** and assigns it to the variable **day**. It then executes everything in the indented block (in this case only one line of code, the print statement) using those variable assignments. When the program has gone through every element of the list, it exists the block.\n",
1060+
"This code snippet goes through each element of the list called **days_of_the_week** and assigns it to the variable **day**. It then executes everything in the indented block (in this case only one line of code, the `print` statement) using those variable assignments. When the program has gone through every element of the list, it exits the block.\n",
10611061
"\n",
10621062
"(Almost) every programming language defines blocks of code in some way. In Fortran, one uses END statements (ENDDO, ENDIF, etc.) to define code blocks. In C, C++, and Perl, one uses curly braces {} to define these blocks.\n",
10631063
"\n",
@@ -1095,7 +1095,7 @@
10951095
"cell_type": "markdown",
10961096
"metadata": {},
10971097
"source": [
1098-
"The **range()** command is particularly useful with the **for** statement to execute loops of a specified length:"
1098+
"The `range()` command is particularly useful with the `for` statement to execute loops of a specified length:"
10991099
]
11001100
},
11011101
{
@@ -1134,7 +1134,7 @@
11341134
],
11351135
"source": [
11361136
"for i in range(20):\n",
1137-
" print \"The square of \",i,\" is \",i*i"
1137+
" print \"The square of \",i,\" is \",i**2"
11381138
]
11391139
},
11401140
{
@@ -1324,7 +1324,7 @@
13241324
},
13251325
{
13261326
"cell_type": "code",
1327-
"execution_count": 41,
1327+
"execution_count": 1,
13281328
"metadata": {
13291329
"collapsed": false
13301330
},
@@ -1333,12 +1333,12 @@
13331333
"name": "stdout",
13341334
"output_type": "stream",
13351335
"text": [
1336-
"Sun\n"
1336+
"Wed\n"
13371337
]
13381338
}
13391339
],
13401340
"source": [
1341-
"day = \"Sunday\"\n",
1341+
"day = \"Wednesday\"\n",
13421342
"abbreviation = day[:3]\n",
13431343
"print abbreviation"
13441344
]
@@ -1400,7 +1400,7 @@
14001400
},
14011401
{
14021402
"cell_type": "code",
1403-
"execution_count": 43,
1403+
"execution_count": 2,
14041404
"metadata": {
14051405
"collapsed": false
14061406
},
@@ -1409,7 +1409,7 @@
14091409
"name": "stdout",
14101410
"output_type": "stream",
14111411
"text": [
1412-
"Sleep in\n"
1412+
"Go to work\n"
14131413
]
14141414
}
14151415
],
@@ -1431,18 +1431,18 @@
14311431
},
14321432
{
14331433
"cell_type": "code",
1434-
"execution_count": 44,
1434+
"execution_count": 3,
14351435
"metadata": {
14361436
"collapsed": false
14371437
},
14381438
"outputs": [
14391439
{
14401440
"data": {
14411441
"text/plain": [
1442-
"True"
1442+
"False"
14431443
]
14441444
},
1445-
"execution_count": 44,
1445+
"execution_count": 3,
14461446
"metadata": {},
14471447
"output_type": "execute_result"
14481448
}

0 commit comments

Comments
 (0)