Cours et TDP en notebooks Jupyter.
Cours
| Notebook | Contenu |
|---|---|
| 01 | Introduction, variables, types, opérateurs |
| 02 | Affichage, f-strings, tests, boucles, listes, mutable / immuable |
| 04 | Tuples, sets, dictionnaires, compréhensions |
| 05 | Tableaux, matrices NumPy, fichiers (utilise etudiants.txt) |
| 06 | Expressions régulières, NumPy (suite), broadcasting |
| 07 | Programmation orientée objet, héritage |
Les cours contiennent volontairement des cellules qui lèvent des erreurs pour montrer ce qu'il ne faut pas faire.
TDP
| TDP | Sujet | Énoncé | Correction |
|---|---|---|---|
| 01 | Conditions, boucles | énoncé | correction (partielle) |
| 02 | Listes, chaînes | correction | |
| 03 | Fonctions, récursivité | énoncé | correction |
| 04 | Sets, dictionnaires | correction | |
| 05 | Vectorisation, matrices, fichiers | correction | |
| 06 | Regex, valeurs propres, POO | correction | |
| 07 | Broadcasting | énoncé | correction |
Les corrections s'exécutent en entier (Restart & Run All). Les input() ont été remplacés par des valeurs d'exemple. Les TDP 05 et 06 créent des fichiers .txt dans leur dossier.
Bibliothèque : pip install numpy