You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
- class Personnage:
- def tente_un_truc_risqué(self):
- 1 / 0
-
- def quitte_la_scène(self):
- print("je m'en vais")
-
-
- def entre_en_scène():
- return Personnage()
-
-
- personnage = entre_en_scène()
- try:
- personnage.tente_un_truc_risqué()
- except FileNotFoundError:
- print("raté")
- personnage.quitte_la_scène()
|