Skip to content

Commit 66c669e

Browse files
committed
Add simple exercise after printing in Jupyter and move Exercises-1.1.1 up; Add links to documentation in day1 session2
1 parent c6ab677 commit 66c669e

7 files changed

Lines changed: 62 additions & 35 deletions

Introduction_to_python_day_1_introduction.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"## Learning objectives\n",
4545
"- **Recall** how to print, create variables and save Python code in files\n",
4646
"- **List** the most common data types in Python\n",
47-
"- **Explain** how to write conditions in Python\n",
47+
"- **Explain** how to use different type of collections\n",
4848
"- **Use and compare** these concepts in different code examples \n",
4949
"- **Propose and create** solutions using these concepts in different exercises"
5050
]
@@ -63,13 +63,13 @@
6363
"## Course schedule - day one\n",
6464
"\n",
6565
"- 09:30-10:00: [0h30] **Introduction**\n",
66-
"- 10:00-12:00: [1h00] **Session 1.1** - Print, Variables, and Simple data types\n",
67-
"- 11:00-11:15: *break*\n",
68-
"- 11:15-12:15: [1h00] **Session 1.1** - Arithmetic and Saving code in files\n",
66+
"- 10:00-10:30: [0h30] **Session 1.1** - Print and Variables\n",
67+
"- 10:30-10:45: *break*\n",
68+
"- 10:45-12:15: [1h30] **Session 1.1** - Simple data types, Arithmetic and Saving code in files\n",
6969
"- 12:15-13:30: *lunch break*\n",
7070
"- 13:30-14:30: [1h00] **Session 1.2** - Collections: Lists and String \n",
7171
"- 14:30-14:45: *break*\n",
72-
"- 14:45-15:45: [1h00] **Session 1.2** - Collections: Dictionnaries"
72+
"- 14:45-15:45: [1h00] **Session 1.2** - Collections: Sets and Dictionnaries"
7373
]
7474
},
7575
{

Introduction_to_python_day_1_session_1.ipynb

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
"## Day 1 - Session 1: \n",
1414
"\n",
1515
"- [Printing values](#Printing-values)\n",
16+
"- [Exercises 1.1.0](#Exercises-1.1.0)\n",
1617
"- [Using variables](#Using-variables)\n",
18+
"- [Exercises 1.1.1](#Exercises-1.1.1)\n",
1719
"- [Simple data types](#Simple-data-types): [Booleans](#Booleans), [Integers](#Integers), [Floating point numbers](#Floating-point-numbers), and [Strings](#Strings)\n",
1820
"- [Comments](#Comments)\n",
19-
"- [Exercises 1.1.1](#Exercises-1.1.1)\n",
2021
"- [Arithmetic](#Arithmetic)\n",
2122
"- [Exercises 1.1.2](#Exercises-1.1.2)\n",
2223
"- [Saving code in files](#Saving-code-in-files)\n",
@@ -107,6 +108,16 @@
107108
"print(\"The answer:\", 42)"
108109
]
109110
},
111+
{
112+
"cell_type": "markdown",
113+
"metadata": {},
114+
"source": [
115+
"## Exercises 1.1.0\n",
116+
"\n",
117+
"1. In Jupyter, insert a new cell below this one to print your name. Execute the code by pressing `run cell` from the menu bar or sing your keyboard `Ctrl-Enter`.\n",
118+
"2. Do now the same using the interpreter"
119+
]
120+
},
110121
{
111122
"cell_type": "markdown",
112123
"metadata": {
@@ -289,6 +300,24 @@
289300
"y"
290301
]
291302
},
303+
{
304+
"cell_type": "markdown",
305+
"metadata": {},
306+
"source": [
307+
"## Exercises 1.1.1\n",
308+
"\n",
309+
"To start the Python interpreter, open a terminal window, type the command `python`, then enter Python commands after the prompt `>>>` and press `Enter` when you're done. \n",
310+
"\n",
311+
"Python will run the code you typed, and might display some output on the line below, before leaving you with another prompt which looks like `>>>`.\n",
312+
"\n",
313+
"If you want to exit the interactive interpreter you can type the command `quit()` or type `Ctrl-D`.\n",
314+
"\n",
315+
"In the interpreter:\n",
316+
"\n",
317+
"1. Create a variable and assign it the string value of your first name, assign your age to another variable (you are free to lie!), print out a message saying how old you are\n",
318+
"2. Use the addition operator to add 10 to your age and print out a message saying how old you will be in 10 years time"
319+
]
320+
},
292321
{
293322
"cell_type": "markdown",
294323
"metadata": {},
@@ -529,24 +558,6 @@
529558
"# print \"Never seen\""
530559
]
531560
},
532-
{
533-
"cell_type": "markdown",
534-
"metadata": {},
535-
"source": [
536-
"## Exercises 1.1.1\n",
537-
"\n",
538-
"To start the Python interpreter, open a terminal window, type the command `python`, then enter Python commands after the prompt `>>>` and press `Enter` when you're done. \n",
539-
"\n",
540-
"Python will run the code you typed, and might display some output on the line below, before leaving you with another prompt which looks like `>>>`.\n",
541-
"\n",
542-
"If you want to exit the interactive interpreter you can type the command `quit()` or type `Ctrl-D`.\n",
543-
"\n",
544-
"In the interpreter:\n",
545-
"\n",
546-
"1. Create a variable and assign it the string value of your first name, assign your age to another variable (you are free to lie!), print out a message saying how old you are\n",
547-
"2. Use the addition operator to add 10 to your age and print out a message saying how old you will be in 10 years time"
548-
]
549-
},
550561
{
551562
"cell_type": "markdown",
552563
"metadata": {},

Introduction_to_python_day_1_session_2.ipynb

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,24 @@
515515
"print(b)"
516516
]
517517
},
518+
{
519+
"cell_type": "markdown",
520+
"metadata": {},
521+
"source": [
522+
"### Getting help from the official Python documentation\n",
523+
"\n",
524+
"The most useful information is online on https://www.python.org/ website and should be used as a reference guide.\n",
525+
"\n",
526+
"- [Python 3.5.2 documentation](https://docs.python.org/3/) is the starting page with links to tutorials and libraries' documentation for Python 3\n",
527+
" - [The Python Tutorial](https://docs.python.org/3/tutorial/index.html)\n",
528+
" - [The Python Standard Library Reference](https://docs.python.org/3/library/index.html) is the documentation of all libraries included within Python as well as built-in functions and data types like:\n",
529+
" - [Text Sequence Type — `str`](https://docs.python.org/3/library/stdtypes.html#text-sequence-type-str)\n",
530+
" - [Numeric Types — `int`, `float`](https://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex)\n",
531+
" - [Sequence Types — `list`, `tuple`](https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range)\n",
532+
" - [Set Types — `set`](https://docs.python.org/3/library/stdtypes.html#set-types-set-frozenset)\n",
533+
" - [Mapping Types — `dict`](https://docs.python.org/3/library/stdtypes.html#mapping-types-dict)"
534+
]
535+
},
518536
{
519537
"cell_type": "markdown",
520538
"metadata": {},
@@ -1086,9 +1104,9 @@
10861104
"cell_type": "markdown",
10871105
"metadata": {},
10881106
"source": [
1089-
"## Next session\n",
1107+
"## Congratulation! You reached the end of day 1!\n",
10901108
"\n",
1091-
"Go to our next notebook: [Introduction_to_python_day_1_session_3](Introduction_to_python_day_1_session_3.ipynb)"
1109+
"Go to our next notebook: [Introduction_to_python_day_2_introduction](Introduction_to_python_day_2_introduction.ipynb)"
10921110
]
10931111
}
10941112
],

Introduction_to_python_day_2_introduction.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"source": [
2626
"## Learning objectives\n",
2727
"\n",
28-
"- **Recall** what we've learned so far on variables and common data types\n",
28+
"- **Recall** what we've learned so far on variables, common data types and collections\n",
2929
"- **Propose and create** solutions using these concepts in an exercise\n",
30-
"- **Use** conditions execute specific code block\n",
30+
"- **Use** conditions to execute specific code block\n",
3131
"- **Employ** loops to repeat code block\n",
3232
"- **Practice** reading and writing files with Python\n",
3333
"- **Solve** more complex exercises"

Introduction_to_python_day_2_session_1.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,9 @@
341341
"cell_type": "markdown",
342342
"metadata": {},
343343
"source": [
344-
"## Congratulation! You reached the end of day 1!\n",
344+
"## Next session\n",
345345
"\n",
346-
"Go to our next notebook: [Introduction_to_python_day_2_introduction](Introduction_to_python_day_2_introduction.ipynb)"
346+
"Go to our next notebook: [Introduction_to_python_day_2_session_2](Introduction_to_python_day_2_session_2.ipynb)"
347347
]
348348
}
349349
],

Introduction_to_python_day_2_session_2.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,9 @@
524524
"cell_type": "markdown",
525525
"metadata": {},
526526
"source": [
527-
"## Congratulation! You reached the end of day 1! \n",
527+
"## Next session\n",
528528
"\n",
529-
"Go to our next notebook: [Introduction_to_python_day_2_introduction](Introduction_to_python_day_2_introduction.ipynb)"
529+
"Go to our next notebook: [Introduction_to_python_day_2_session_3](Introduction_to_python_day_2_session_3.ipynb)"
530530
]
531531
}
532532
],

Introduction_to_python_day_2_session_3.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -942,9 +942,7 @@
942942
"cell_type": "markdown",
943943
"metadata": {},
944944
"source": [
945-
"## Next session\n",
946-
"\n",
947-
"Go to our next notebook: [Introduction_to_python_day_2_session_4](Introduction_to_python_day_2_session_4.ipynb)"
945+
"## Congratulation! You reached the end of day 2! "
948946
]
949947
}
950948
],

0 commit comments

Comments
 (0)