|
13 | 13 | "## Day 1 - Session 1: \n", |
14 | 14 | "\n", |
15 | 15 | "- [Printing values](#Printing-values)\n", |
| 16 | + "- [Exercises 1.1.0](#Exercises-1.1.0)\n", |
16 | 17 | "- [Using variables](#Using-variables)\n", |
| 18 | + "- [Exercises 1.1.1](#Exercises-1.1.1)\n", |
17 | 19 | "- [Simple data types](#Simple-data-types): [Booleans](#Booleans), [Integers](#Integers), [Floating point numbers](#Floating-point-numbers), and [Strings](#Strings)\n", |
18 | 20 | "- [Comments](#Comments)\n", |
19 | | - "- [Exercises 1.1.1](#Exercises-1.1.1)\n", |
20 | 21 | "- [Arithmetic](#Arithmetic)\n", |
21 | 22 | "- [Exercises 1.1.2](#Exercises-1.1.2)\n", |
22 | 23 | "- [Saving code in files](#Saving-code-in-files)\n", |
|
107 | 108 | "print(\"The answer:\", 42)" |
108 | 109 | ] |
109 | 110 | }, |
| 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 | + }, |
110 | 121 | { |
111 | 122 | "cell_type": "markdown", |
112 | 123 | "metadata": { |
|
289 | 300 | "y" |
290 | 301 | ] |
291 | 302 | }, |
| 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 | + }, |
292 | 321 | { |
293 | 322 | "cell_type": "markdown", |
294 | 323 | "metadata": {}, |
|
529 | 558 | "# print \"Never seen\"" |
530 | 559 | ] |
531 | 560 | }, |
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 | | - }, |
550 | 561 | { |
551 | 562 | "cell_type": "markdown", |
552 | 563 | "metadata": {}, |
|
0 commit comments