diff --git a/module3/exo2/exercice.ipynb b/module3/exo2/exercice.ipynb index a55f416b5a27af5b3c5ce436efbbc1f352d2eb88..ec0ba69c0eadd156aaa7156d42e6fa5e68847740 100644 --- a/module3/exo2/exercice.ipynb +++ b/module3/exo2/exercice.ipynb @@ -1063,14 +1063,14 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "def dico_min(dico):\n", " min_year = list(dico.keys())[0]\n", " for year in dico:\n", - " if dico[year] <= dico[min_year]:\n", + " if dico[year] <= dico[min_year] and year != 1990:\n", " min_year = year\n", " return min_year" ] @@ -1084,23 +1084,23 @@ "def dico_max(dico):\n", " max_year = list(dico.keys())[0]\n", " for year in dico:\n", - " if dico[year] >= dico[max_year]:\n", + " if dico[year] >= dico[max_year] and year != 1990:\n", " max_year = year\n", " return max_year" ] }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "1990" + "2020" ] }, - "execution_count": 6, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" }