Skip to content

Commit 5d07e11

Browse files
committed
Worked on session 3 of day 2: tabular data and csv module; all exercises renamed; all exceptions removed; all calls to bash within jupyter removed
[x] Todo: renumber all exercises [x] Remove: assert in calcDistance() and usage of sqrt from import math [x] Todo: add exercise on reading tabular data + cvs module [x] Remove exception from exercice [x] Remove: %%bash — more to remove in day2.session3
1 parent e679dac commit 5d07e11

26 files changed

Lines changed: 364 additions & 709 deletions

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,17 @@ __pycache__/
99
.DS_Store
1010

1111
venv
12+
13+
biopython.fa
14+
15+
csvdata.tsv
16+
17+
csvdictdata.tsv
18+
19+
data/mydata.csv
20+
21+
gene_lengths_csv.tsv
22+
23+
gene_lengths.tsv
24+
25+
out.txt

Introduction_to_python_day_2_session_2.ipynb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,21 @@
123123
">>> say_hello('Anne')\n",
124124
"hello Anne !\n",
125125
">>> \n",
126-
"```"
126+
"```\n",
127+
"\n",
128+
"There is one module already stored in the course directory called `my_first_module.py`, if you wish to import it into this notebook, below is what you need to do. If you wish to edit this file and change the code or add another function, you will have to restart the notebook to have these changes taken into account using the restart the kernel button in the menu bar."
129+
]
130+
},
131+
{
132+
"cell_type": "code",
133+
"execution_count": null,
134+
"metadata": {
135+
"collapsed": false
136+
},
137+
"outputs": [],
138+
"source": [
139+
"from my_first_module import say_hello\n",
140+
"say_hello('Anne')"
127141
]
128142
},
129143
{

0 commit comments

Comments
 (0)