Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
WandrilleD committed Oct 12, 2022
2 parents 40c101a + 1aad5a3 commit b61d5e5
Show file tree
Hide file tree
Showing 20 changed files with 216 additions and 257 deletions.
111 changes: 38 additions & 73 deletions notebooks/01_python_basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,79 +16,43 @@
"source": [
"### Table of Content <a id='toc'></a>\n",
"\n",
"[Python basics](#0)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Variables](#1)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Code indentation - the importance of white spaces in Python](#2)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Functions](#3)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[The help function - your best friend in Python](#4)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Reading and understanding errors](#5)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Micro Exercise 1](#6)\n",
"\n",
"<br>\n",
"\n",
"[Object types: simple types](#7)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Type conversion](#8)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Micro Exercise 2](#9)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Operators](#10)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Arithmetic operators](#11)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Comparison operators](#12)\n",
"\n",
"[**Python basics**](#0) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Variables](#1) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Code indentation - the importance of white spaces in Python](#2) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Functions](#3) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[The help function - your best friend in Python](#4) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Reading and understanding errors](#5) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Micro Exercise 1](#6) \n",
"\n",
"[**Object types: simple types**](#7) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Type conversion](#8) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Micro Exercise 2](#9) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Operators](#10) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Arithmetic operators](#11) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Comparison operators](#12) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Micro Exercise 3](#13)\n",
"\n",
"<br>\n",
"\n",
"[Object types: container types](#14)\n",
"\n",
"[Strings](#15)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Length of a string](#16)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[String concatenation](#17)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[String slicing](#18)\n",
"[**Object types: container types**](#14) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;[**Strings**](#15) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Length of a string](#16) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String concatenation](#17) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[String slicing](#18) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Micro exercise 4](#19) \n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Micro exercise 4](#19)\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[**Lists and tuples**](#20) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[List and tuple slicing](#21) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Mutability - an important difference between lists and tuples](#22) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Manipulating lists: adding and removing elements](#23) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[From list to string, and back again ...](#24) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Micro Exercise 5](#25)\n",
"\n",
"<br>\n",
"\n",
"[Lists and tuples](#20)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[List and tuple slicing](#21)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Mutability - an important difference between lists and tuples](#22)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Manipulating lists: adding and removing elements](#23)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[From list to string, and back again ...](#24)\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[**Dictionaries**](#26)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Micro Exercise 5](#25)\n",
"\n",
"<br>\n",
"\n",
"[Dictionaries](#26)\n",
"\n",
"<br>\n",
"[**Exercises 1.1 - 1.4**](#27)\n",
"\n",
"[Exercises 1.1 - 1.4](#27)\n",
"\n",
"<br>\n",
"\n",
"[Additional Theory and Exercises](#28)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Mutability of objects in Python](#29)\n",
"\n",
"&nbsp;&nbsp;&nbsp;&nbsp;[A solution: explicit deep copy](#30)"
"[**Additional Theory**](#28) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;[Mutability of objects in Python](#29) \n",
"&nbsp;&nbsp;&nbsp;&nbsp;[A solution: explicit deep copy](#30) "
]
},
{
Expand Down Expand Up @@ -552,7 +516,7 @@
"source": [
"<br>\n",
"\n",
"[back to toc](#toc)\n",
"[Back to ToC](#toc)\n",
"\n",
"### Type conversion <a id='8'></a>\n",
"\n",
Expand Down Expand Up @@ -624,7 +588,7 @@
"<br>\n",
"<br>\n",
"\n",
"[back to toc](#toc)\n",
"[Back to ToC](#toc)\n",
"\n",
"## Operators <a id='10'></a>\n",
"Now that we have variables containing objects of a certain **type**, we can begin to manipulate them using **operators**.\n",
Expand Down Expand Up @@ -785,7 +749,7 @@
"<br>\n",
"<br>\n",
"\n",
"[back to toc](#toc)\n",
"[Back to ToC](#toc)\n",
"\n",
"## Object types: container types <a id='14'></a>\n",
"\n",
Expand Down Expand Up @@ -1760,11 +1724,12 @@
"\n",
"<br>\n",
"<br>\n",
"<br>\n",
"\n",
"[Back to ToC](#toc)\n",
"\n",
"# Additional Theory and Exercises <a id='28'></a>\n",
"--------------------------------------------------\n",
"# Additional Theory <a id='28'></a>\n",
"-----------------------------\n",
"\n",
"If you have time, feel free to try the **additionnal exercises** for module 1.\n",
"\n",
Expand Down Expand Up @@ -1942,7 +1907,7 @@
"source": [
"<br>\n",
"\n",
"[back to toc](#toc)\n",
"[Back to ToC](#toc)\n",
"\n",
"### A solution: explicit deep copy <a id='30'></a>\n",
"\n",
Expand Down
Loading

0 comments on commit b61d5e5

Please sign in to comment.