From 136184e2ca2cc5e0a1647be7138544b6190a6352 Mon Sep 17 00:00:00 2001
From: Jeanette Lee <jeanette.lee@stud.hslu.ch>
Date: Fri, 11 Mar 2022 20:18:26 +0000
Subject: [PATCH] Problem 2 solved

---
 notebooks/Block_0/Exercise Sheet - Basics Numpy.ipynb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/notebooks/Block_0/Exercise Sheet - Basics Numpy.ipynb b/notebooks/Block_0/Exercise Sheet - Basics Numpy.ipynb
index bc23d73..c4bd3e9 100644
--- a/notebooks/Block_0/Exercise Sheet - Basics Numpy.ipynb	
+++ b/notebooks/Block_0/Exercise Sheet - Basics Numpy.ipynb	
@@ -116,7 +116,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 2,
+   "execution_count": 9,
    "metadata": {},
    "outputs": [
     {
@@ -124,7 +124,7 @@
      "output_type": "stream",
      "text": [
       "The given weights and lengths result in BMI's: \n",
-      "None\n"
+      "[19.59 22.22 20.94 24.93 31.38 19.74]\n"
      ]
     }
    ],
@@ -135,7 +135,7 @@
     "\n",
     "def BMI(weight, length):\n",
     "    # Function returning the BMI of input vectors m and l\n",
-    "    return \n",
+    "    return np.array(weight) / np.array(length)**2\n",
     "\n",
     "\n",
     "m_example = [60, 72, 57, 90, 95, 72]\n",
-- 
GitLab