From d769d36e20daaa3c133080d60ec3b550b8c72a7e Mon Sep 17 00:00:00 2001 From: eea96e22929070631ef5f6460e88e7b3 Date: Wed, 18 Dec 2024 10:30:05 +0000 Subject: [PATCH] Adding Exerc 2 Mod 2 --- module2/exo2/exercice.ipynb | 25 -------- module2/exo2/exercice_02_mod_02.ipynb | 88 +++++++++++++++++++++++++++ 2 files changed, 88 insertions(+), 25 deletions(-) delete mode 100644 module2/exo2/exercice.ipynb create mode 100644 module2/exo2/exercice_02_mod_02.ipynb diff --git a/module2/exo2/exercice.ipynb b/module2/exo2/exercice.ipynb deleted file mode 100644 index 0bbbe37..0000000 --- a/module2/exo2/exercice.ipynb +++ /dev/null @@ -1,25 +0,0 @@ -{ - "cells": [], - "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.3" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} - diff --git a/module2/exo2/exercice_02_mod_02.ipynb b/module2/exo2/exercice_02_mod_02.ipynb new file mode 100644 index 0000000..4a65713 --- /dev/null +++ b/module2/exo2/exercice_02_mod_02.ipynb @@ -0,0 +1,88 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], + "source": [ + "import numpy as np" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "14.113000000000001" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "np.mean(data)" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "4.334094455301447" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "np.std(data, ddof=1)" + ] + }, + { + "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": 2 +} -- 2.18.1