Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
d67f1d289df81656bf4e76b9db13fedf
mooc-rr
Commits
8f2f6b85
Commit
8f2f6b85
authored
Nov 24, 2022
by
d67f1d289df81656bf4e76b9db13fedf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version excluant 1990.
parent
629aae30
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
exercice.ipynb
module3/exo2/exercice.ipynb
+6
-6
No files found.
module3/exo2/exercice.ipynb
View file @
8f2f6b85
...
...
@@ -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": [
"
199
0"
"
202
0"
]
},
"execution_count":
6
,
"execution_count":
9
,
"metadata": {},
"output_type": "execute_result"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment