From 0a93625379a52d3a1257fa236b1b5d12932e0af3 Mon Sep 17 00:00:00 2001 From: 8d088871cad15c46957100dfd1395055 <8d088871cad15c46957100dfd1395055@app-learninglab.inria.fr> Date: Thu, 26 Mar 2020 19:27:02 +0000 Subject: [PATCH] =?UTF-8?q?1=C2=B0=20v?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module2/exo1/Untitled.ipynb | 110 ++++++++++++++++++++++++++ module2/exo1/distribution carte.ipynb | 110 ++++++++++++++++++++++++++ 2 files changed, 220 insertions(+) create mode 100644 module2/exo1/Untitled.ipynb create mode 100644 module2/exo1/distribution carte.ipynb diff --git a/module2/exo1/Untitled.ipynb b/module2/exo1/Untitled.ipynb new file mode 100644 index 0000000..cbc3655 --- /dev/null +++ b/module2/exo1/Untitled.ipynb @@ -0,0 +1,110 @@ +{ + "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 +} diff --git a/module2/exo1/distribution carte.ipynb b/module2/exo1/distribution carte.ipynb new file mode 100644 index 0000000..cbc3655 --- /dev/null +++ b/module2/exo1/distribution carte.ipynb @@ -0,0 +1,110 @@ +{ + "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 +} -- 2.18.1