Skip to content

Commit 7ce09f7

Browse files
committed
Add how to find python version in session 1.2; Add simple data types into session 2 intro; Improve day 2 recap;
1 parent 3aa7e00 commit 7ce09f7

6 files changed

Lines changed: 159 additions & 275 deletions

python_basic_1_1.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"source": [
1111
"# An introduction to solving biological problems with Python\n",
1212
"\n",
13-
"## Day 1 - Session 1: \n",
13+
"## Day 1 - Session 1: Variables\n",
1414
"\n",
1515
"- [Printing values](#Printing-values)\n",
1616
"- [Exercises 1.1.1](#Exercises-1.1.1)\n",

python_basic_1_2.ipynb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"source": [
1111
"# An introduction to solving biological problems with Python\n",
1212
"\n",
13-
"## Day 1 - Session 2: \n",
13+
"## Day 1 - Session 2: Simple data types\n",
1414
"\n",
1515
"- [Simple data types](#Simple-data-types): [Integers](#Integers), [Floats](#Floats), [Strings](#Strings) and [Booleans](#Booleans)\n",
1616
"- [Comments](#Comments)\n",
@@ -485,6 +485,14 @@
485485
"\n",
486486
"As we mentioned earlier, you can also save python code in a file and then execute it later. We typically save python code in a file ending with the extension <tt>.py</tt>. The file, or _script_, can then be executed simply by supplying the name of the file as an argument to the <tt>python</tt> command in the terminal.\n",
487487
"\n",
488+
"The first thing you may want to do, before going any further, is to verify the version of python you are running. To do so, open a terminal window and execute this command:\n",
489+
"\n",
490+
"```bash\n",
491+
"python --version\n",
492+
"```\n",
493+
"\n",
494+
"You should be running Python 3.5.x.\n",
495+
"\n",
488496
"The first file we will be looking at is located in the `scripts` directory and it is called `hello.py`. To execute the script, open a terminal window, navigate to the `scripts` directory and execute the code in the script `hello.py` by running `python hello.py` in your terminal:\n",
489497
"\n",
490498
"```bash\n",

python_basic_1_intro.ipynb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"source": [
8686
"## Course schedule - day two\n",
8787
"\n",
88-
"- Loops and Files"
88+
"- Conditions, Loops and Files"
8989
]
9090
},
9191
{
@@ -298,15 +298,6 @@
298298
"\n",
299299
"- Go to our notebook for the fist session: [python_basic_1_1](python_basic_1_1.ipynb)"
300300
]
301-
},
302-
{
303-
"cell_type": "code",
304-
"execution_count": null,
305-
"metadata": {
306-
"collapsed": false
307-
},
308-
"outputs": [],
309-
"source": []
310301
}
311302
],
312303
"metadata": {

python_basic_2_3.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@
297297
"# fileObj will be closed when leaving the block\n",
298298
"with open( \"data/datafile.txt\" ) as fileObj:\n",
299299
" for ( i, line ) in enumerate( fileObj, start = 1 ):\n",
300-
" print(\"%s: %r\" % ( i, line ))"
300+
" print( i, line.strip() )"
301301
]
302302
},
303303
{

0 commit comments

Comments
 (0)