diff --git a/representation_construits/chapitre_2/exercices/CORRECTION_POKEDEX.md b/representation_construits/chapitre_2/exercices/CORRECTION_POKEDEX.md index 8113e83..0f3e6a9 100644 --- a/representation_construits/chapitre_2/exercices/CORRECTION_POKEDEX.md +++ b/representation_construits/chapitre_2/exercices/CORRECTION_POKEDEX.md @@ -46,8 +46,8 @@ def le_plus_grand(pokemons): ```python def le_plus_leger(liste_pokemons): - leger = 0 - poids_min = 0 + leger = None + poids_min = 10000 for (nom, (taille, poids)) in liste_pokemons.items(): if poids_min > poids poids_min = poids