Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions w1/w1-s4-c2-interpreteur-et-notebooks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"metadata": {},
"source": [
"| Quoi | Avec quel outil |\n",
"|:----------------|:-----------------------------|\n",
"|----------------:|-----------------------------:|\n",
"| fichier complet | `python3 <fichier>.py` |\n",
"| ligne à ligne | `python3` en mode interactif |\n",
"| &nbsp; | ou sous `ipython3` |\n",
Expand Down Expand Up @@ -346,7 +346,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.6.3"
},
"livereveal": {
"auto_select": "code",
Expand Down
20 changes: 10 additions & 10 deletions w1/w1-s4-c3-fibonacci-prompt.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"| n | fibonacci(n) |\n",
"|---|--------------|\n",
"| 0 | 1 |\n",
"| 1 | 1 |\n",
"| 2 | 2 |\n",
"| 3 | 3 |\n",
"| 4 | 5 |\n",
"| 5 | 8 |\n",
"| 6 | 13 |"
"| n | fibonacci(n) |\n",
"|---:|--------------:|\n",
"| 0 | 1 |\n",
"| 1 | 1 |\n",
"| 2 | 2 |\n",
"| 3 | 3 |\n",
"| 4 | 5 |\n",
"| 5 | 8 |\n",
"| 6 | 13 |"
]
},
{
Expand Down Expand Up @@ -184,7 +184,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.6.3"
},
"livereveal": {
"auto_select": "code",
Expand Down
4 changes: 2 additions & 2 deletions w1/w1-s5-c2-mots-cles.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"source": [
"\n",
"| &nbsp; | &nbsp; | &nbsp; | &nbsp; | &nbsp; |\n",
"|:----------|:---------|:--------|:-------------|:-------|\n",
"|----------:|---------:|--------:|-------------:|-------:|\n",
"| **False** | await | else | import | pass |\n",
"| **None** | break | except | in | raise |\n",
"| **True** | class | finally | is | return |\n",
Expand Down Expand Up @@ -152,7 +152,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.6.3"
},
"livereveal": {
"auto_select": "code",
Expand Down
6 changes: 3 additions & 3 deletions w1/w1-s6-c1-calculette.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"Rappelez-vous des opérateurs suivants qui sont très pratiques :\n",
"\n",
"| code | opération |\n",
"|:-----|:----------|\n",
"|-----:|----------:|\n",
"| `//` | quotient |\n",
"| `%` | modulo |\n",
"| `**` | puissance |"
Expand Down Expand Up @@ -459,7 +459,7 @@
"De manière plus générale, pour convertir un objet en un entier, un flottant, ou une chaîne de caractères, on peut simplement appeler une fonction *built-in* qui porte le même nom que le type cible :\n",
"\n",
"| Type | Fonction |\n",
"|:---------|:----------|\n",
"|---------:|----------:|\n",
"| Entier | `int` |\n",
"| Flottant | `float` |\n",
"| Complexe | `complex` |\n",
Expand Down Expand Up @@ -650,7 +650,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
"version": "3.6.3"
},
"livereveal": {
"auto_select": "code",
Expand Down
4 changes: 2 additions & 2 deletions w3/w3-s1-c1-fichiers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
"On voit donc que chaque bloc contient bien quatre caractères en comptant les sauts de ligne :\n",
"\n",
"| bloc # | contenu |\n",
"|:-------|:-------------------------------------------|\n",
"|-------:|-------------------------------------------:|\n",
"| 0 | un `0`, un *newline*, un `1`, un *newline* |\n",
"| 1 | un `1`, deux `0`, un *newline* |"
]
Expand Down Expand Up @@ -477,7 +477,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.6.3"
},
"livereveal": {
"auto_select": "code",
Expand Down
6 changes: 3 additions & 3 deletions w3/w3-s4-c2-cles-immuables.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"Nous avons depuis le début du cours longuement insisté sur le caractère mutable ou immuable des différents types prédéfinis de Python. Vous devez donc à présent avoir au moins en partie ce tableau en tête :\n",
"\n",
"| Type | Mutable ? |\n",
"|:----------------|:----------|\n",
"|----------------:|----------:|\n",
"| `int`, `float` | immuable |\n",
"|`complex`,`bool` | immuable |\n",
"|`str` | immuable |\n",
Expand Down Expand Up @@ -239,7 +239,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
"version": "3.6.3"
},
"livereveal": {
"auto_select": "code",
Expand All @@ -258,4 +258,4 @@
},
"nbformat": 4,
"nbformat_minor": 1
}
}
26 changes: 13 additions & 13 deletions w4/w4-s2-c4-conditions-2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@
"source": [
"Ainsi parmi les notions que nous avons vues jusqu'ici, nous pouvons citer dans un ordre arbitraire :\n",
"\n",
"| Instructions | &nbsp; | Expressions|\n",
"|--------------|-|------------|\n",
"| affectation | &nbsp; | appel de fonction | \n",
"| `import` | &nbsp; |opérateurs `is`, `in`, `==`, ... |\n",
"| instruction `if` | &nbsp; |expression conditionnelle|\n",
"| instruction `for` |&nbsp; | compréhension(s) |"
"| Instructions | &nbsp; | Expressions |\n",
"|------------------:|-------:|--------------------------------:|\n",
"| affectation | &nbsp; | appel de fonction | \n",
"| `import` | &nbsp; |opérateurs `is`, `in`, `==`, ... |\n",
"| instruction `if` | &nbsp; |expression conditionnelle |\n",
"| instruction `for` | &nbsp; | compréhension(s) |"
]
},
{
Expand Down Expand Up @@ -266,12 +266,12 @@
"source": [
"Nous avons déjà eu l'occasion de rencontrer la plupart des opérateurs de comparaison du langage, dont voici à nouveau les principaux :\n",
"\n",
"| Famille | &nbsp; |Exemples |\n",
"|---------|-|---------|\n",
"| Égalité | &nbsp; |`==`, `!=`, `is`, `is not` |\n",
"| Appartenance | &nbsp; | `in` |\n",
"| Comparaison | &nbsp; | `<=`, `<`, `>`, `>=` |\n",
"| Logiques | &nbsp; | `and`, `or`, `not` |"
"| Famille | &nbsp; |Exemples |\n",
"|-------------:|-------:|--------------------------:|\n",
"| Égalité | &nbsp; |`==`, `!=`, `is`, `is not` |\n",
"| Appartenance | &nbsp; | `in` |\n",
"| Comparaison | &nbsp; | `<=`, `<`, `>`, `>=` |\n",
"| Logiques | &nbsp; | `and`, `or`, `not` |"
]
},
{
Expand Down Expand Up @@ -546,7 +546,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.6.3"
},
"livereveal": {
"auto_select": "code",
Expand Down
12 changes: 6 additions & 6 deletions w4/w4-s3-x2-taxes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"| Tranche | Revenu imposable | Taux |\n",
"|---------|------------------|------|\n",
"| Non imposable | jusque £11.500 | 0% |\n",
"| Taux de base | £11.501 à £45.000 | 20% |\n",
"| Taux élevé | £45.001 à £150.000 | 40% |\n",
"| Taux supplémentaire | au delà de £150.000\t| 45% |"
"| Tranche | Revenu imposable | Taux |\n",
"|--------------------:|--------------------:|------:|\n",
"| Non imposable | jusque £11.500 | 0% |\n",
"| Taux de base | £11.501 à £45.000 | 20% |\n",
"| Taux élevé | £45.001 à £150.000 | 40% |\n",
"| Taux supplémentaire | au delà de £150.000\t| 45% |"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions w7/w7-s03-c1-shape.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@
"metadata": {},
"source": [
"| *attribut* | *signification* | *exemple* |\n",
"|:-----------|:------------------------------|:-------------|\n",
"|-----------:|------------------------------:|-------------:|\n",
"| `shape` | tuple des dimensions | `(3, 5, 7)` |\n",
"| `ndim` | nombre dimensions | `3` |\n",
"| `size` | nombre d'éléments | `3 * 5 * 7` |\n",
Expand Down Expand Up @@ -533,7 +533,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.6.3"
},
"livereveal": {
"auto_select": "code",
Expand Down
16 changes: 8 additions & 8 deletions w8/w8-s5-av.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
}
},
"source": [
"| instruction | classe d'objets | protocole | exemple | \n",
"|-------------|------------------|-----------|---------|\n",
"| `for` | itérables | `__iter__` | liste, ensemble |\n",
"| `with` | context managers | `__enter__` & `__exit__` | fichier |\n",
"| `dict[x]` | hashables | `__hash__` | *builtins* immuables |\n",
"| `await` | awaitables | `__await__` | objet coroutine |"
"| instruction | classe d'objets | protocole | exemple | \n",
"|------------:|------------------:|------------------------:|---------------------:|\n",
"| `for` | itérables | `__iter__` | liste, ensemble |\n",
"| `with` | context managers |`__enter__` & `__exit__` | fichier |\n",
"| `dict[x]` | hashables | `__hash__` | *builtins* immuables |\n",
"| `await` | awaitables | `__await__` | objet coroutine |"
]
},
{
Expand Down Expand Up @@ -662,7 +662,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.2"
"version": "3.6.3"
},
"livereveal": {
"auto_select": "code",
Expand All @@ -682,4 +682,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}
6 changes: 3 additions & 3 deletions w8/w8-s8-av.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
"### Séquencement des jobs\n",
"\n",
"| | j0 (1) | j1(2) | j2(3) | j3(1) | j4(2) | j5(3) | j6(1) | j7(2) |\n",
"|-----|--------|-------|-------|-------|-------|-------|-------|-------|\n",
"|:---:|:------:|:-----:|:-----:|:-----:|:-----:|:-----:|:-----:|:-----:|\n",
"| 0-1 | `*` | `*` | `*` | `*` | | | | |\n",
"| 1-2 | | `*` | `*` | | `*` | `*` | | |\n",
"| 2-3 | | | `*` | | `*` | `*` | `*` | |\n",
Expand Down Expand Up @@ -375,7 +375,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.2"
"version": "3.6.3"
},
"livereveal": {
"auto_select": "code",
Expand All @@ -395,4 +395,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}