Lesson 7 of 14 · Structuring your code
Fichiers et exceptions : with, try/except/finally, lever ses propres exceptions
This lesson has not been translated yet: it is shown in French.
Objectif
Écrire des programmes qui ne plantent pas au premier imprévu : lire et écrire des fichiers proprement, réagir à une saisie invalide, à un fichier absent ou à un stock insuffisant, et signaler clairement les erreurs de votre propre code.
This lesson is part of the full course
Unlock Python: Programming, Automation and Data Analysis to read every lesson, do the exercises, access the simulations and earn your certificate.
Already enrolled? Log in.