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
8d088871cad15c46957100dfd1395055
mooc-rr
Commits
0a936253
Commit
0a936253
authored
Mar 26, 2020
by
8d088871cad15c46957100dfd1395055
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1° v
parent
9cf828f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
220 additions
and
0 deletions
+220
-0
Untitled.ipynb
module2/exo1/Untitled.ipynb
+110
-0
distribution carte.ipynb
module2/exo1/distribution carte.ipynb
+110
-0
No files found.
module2/exo1/Untitled.ipynb
0 → 100644
View file @
0a936253
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## un doc distribution\n",
"definition des cartes\n"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"7\n"
]
}
],
"source": [
"x = 7\n",
"print (x)\n",
"niv = [1,2,3,4,5,6,7,8,9,10,\"V\",\"D\",\"R\",\"A\"]\n",
"coul = ['T','K','C','P']\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## distribution d'une carte\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1 K\n"
]
}
],
"source": [
"import random ;\n",
"\n",
"i = random.choice (niv)\n",
"j = random.choice (coul)\n",
"print (i, j)\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
module2/exo1/distribution carte.ipynb
0 → 100644
View file @
0a936253
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## un doc distribution\n",
"definition des cartes\n"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"7\n"
]
}
],
"source": [
"x = 7\n",
"print (x)\n",
"niv = [1,2,3,4,5,6,7,8,9,10,\"V\",\"D\",\"R\",\"A\"]\n",
"coul = ['T','K','C','P']\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## distribution d'une carte\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1 K\n"
]
}
],
"source": [
"import random ;\n",
"\n",
"i = random.choice (niv)\n",
"j = random.choice (coul)\n",
"print (i, j)\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
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