Version excluant 1990.

parent 629aae30
......@@ -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"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment