From 22a678f025b15ae0befdee081cdb9fffc72ce53e Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 6 Oct 2022 18:01:00 +0200 Subject: [PATCH 1/2] lab functions Marc Planas --- main.ipynb | 1315 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 1273 insertions(+), 42 deletions(-) diff --git a/main.ipynb b/main.ipynb index 73f285a..1585141 100644 --- a/main.ipynb +++ b/main.ipynb @@ -20,7 +20,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -37,19 +37,36 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "def greater(a,b):\n", - " pass" + " if a > b:\n", + " return a\n", + " elif a < b:\n", + " return b\n", + " else:\n", + " return \"a = b\"" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.128s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_greater(greater)" @@ -64,19 +81,47 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 25, "metadata": {}, "outputs": [], "source": [ "def greatest(arr):\n", - " pass" + " arr.sort()\n", + " return arr[-1]" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 35, "metadata": {}, "outputs": [], + "source": [ + "def gratest(arr): # Found it online\n", + " for i in arr:\n", + " if largest_element == None: # First loop there is no largest\n", + " largest_element = e # First loop largest will be the first \"i\"\n", + " elif e > largest:\n", + " largest = e\n", + " return e" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.135s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_greatest(greatest)" @@ -91,19 +136,34 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 31, "metadata": {}, "outputs": [], "source": [ "def sum_all(arr):\n", - " pass" + " counter = 0\n", + " for i in arr:\n", + " counter += i\n", + " return counter" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 32, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.127s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_sum(sum_all)" @@ -118,19 +178,35 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 47, "metadata": {}, "outputs": [], "source": [ "def mult_all(arr):\n", - " pass" + " total = 1\n", + " for i in arr:\n", + " total *= i\n", + " return total\n", + " " ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 48, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.146s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_mult(mult_all)" @@ -145,19 +221,58 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 49, "metadata": {}, "outputs": [], "source": [ "def oper_all(arr, oper):\n", - " pass" + " the_sum = 0\n", + " the_mult = 1\n", + " \n", + " if oper == \"+\":\n", + " for i in arr:\n", + " the_sum += i\n", + " return the_sum\n", + " \n", + " elif oper == \"*\":\n", + " for i in arr:\n", + " the_mult *= i\n", + " return the_mult\n", + " " ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 59, "metadata": {}, "outputs": [], + "source": [ + "def oper_all(arr, oper):\n", + " \n", + " if oper == \"+\":\n", + " return sum_all(arr)\n", + " \n", + " elif oper == \"*\":\n", + " return mult_all(arr)" + ] + }, + { + "cell_type": "code", + "execution_count": 60, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.127s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_operations(oper_all)" @@ -172,19 +287,60 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 55, "metadata": {}, "outputs": [], "source": [ "def factorial(n):\n", - " pass" + " x = 1\n", + " for i in range(1,n+1):\n", + " x = x*i\n", + " return x" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 54, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "120" + ] + }, + "execution_count": 54, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "n=5\n", + "x=1\n", + "\n", + "for i in range(1,n+1):\n", + " x = x*i\n", + " \n", + "x" + ] + }, + { + "cell_type": "code", + "execution_count": 56, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.130s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_factorial(factorial)" @@ -201,19 +357,37 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 57, "metadata": {}, "outputs": [], "source": [ "def unique(arr):\n", - " pass" + " unique = []\n", + " for i in arr:\n", + " if i not in unique:\n", + " unique.append(i)\n", + " else:\n", + " pass\n", + " return unique" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 58, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.243s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_unique(unique)" @@ -229,19 +403,110 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 83, "metadata": {}, "outputs": [], "source": [ "def mode_counter(arr):\n", - " pass" + " import operator\n", + " counter_of_i = {}\n", + " \n", + " for i in arr:\n", + " if i not in counter_of_i:\n", + " counter_of_i[i] = 1\n", + " else: # i in list\n", + " counter_of_i[i] += 1\n", + " \n", + " sorted_mydict = dict(sorted(counter_of_i.items(), key=operator.itemgetter(1), reverse = True))\n", + " \n", + " for key, value in counter_of_i.items():\n", + " if value == list(sorted_mydict.values())[0]:\n", + " return key" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 72, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{1: 2, 3: 4, 4: 1, 5: 3, 6: 3, 7: 1}\n" + ] + } + ], + "source": [ + "a_list = [1,1,3,3,3,3,4,5,5,5,6,6,6,7]\n", + "\n", + "import operator\n", + "counter = {}\n", + "\n", + "for i in a_list:\n", + " if i not in counter:\n", + " counter[i] = 1\n", + " else:\n", + " counter[i] += 1\n", + "\n", + "print(counter)" + ] + }, + { + "cell_type": "code", + "execution_count": 75, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{3: 4, 5: 3, 6: 3, 1: 2, 4: 1, 7: 1}\n" + ] + } + ], + "source": [ + "sorted_mydict = dict(sorted(counter.items(), key=operator.itemgetter(1), reverse = True))\n", + "print(sorted_mydict)" + ] + }, + { + "cell_type": "code", + "execution_count": 82, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "4" + ] + }, + "execution_count": 82, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "list(sorted_mydict.values())[0]\n" + ] + }, + { + "cell_type": "code", + "execution_count": 84, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.143s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_mode(mode_counter)" @@ -257,20 +522,906 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 88, "metadata": {}, "outputs": [], "source": [ "from statistics import stdev\n", + "import math\n", + "\n", "def st_dev(arr):\n", - " pass" + " mean_sum = 0\n", + " for i in arr:\n", + " mean_sum += i\n", + " mean = mean_sum/len(arr)\n", + " \n", + " arr_sq = []\n", + " for i in arr:\n", + " deviation_i = i - mean\n", + " sq_dev_i = deviation_i ** 2\n", + " arr_sq.append(sq_dev_i)\n", + " \n", + " sum_sq = sum(arr_sq)\n", + " \n", + " variance = sum_sq / (len(arr)-1)\n", + " \n", + " return math.sqrt(variance)" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 87, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "1.4142135623730951" + ] + }, + "execution_count": 87, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import math\n", + "math.sqrt(2)" + ] + }, + { + "cell_type": "code", + "execution_count": 89, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 22.484169378665694 != 564.8731267017041 within 5 delta (542.3889573230384 difference) : Should be 564.8731267017041\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 35.60731818086334 != 560.8186121995896 within 5 delta (525.2112940187262 difference) : Should be 560.8186121995896\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 154.61729422721132 != 513.1300519521832 within 5 delta (358.51275772497183 difference) : Should be 513.1300519521832\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1.5764142748277603 != 569.3336125829869 within 5 delta (567.7571983081591 difference) : Should be 569.3336125829869\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 69.57193366196175 != 566.7174418987303 within 5 delta (497.14550823676853 difference) : Should be 566.7174418987303\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 3.9958847824190245 != 516.85574904403 within 5 delta (512.8598642616109 difference) : Should be 516.85574904403\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 6.430999585280986 != 572.5308463263985 within 5 delta (566.0998467411175 difference) : Should be 572.5308463263985\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2.70967764525164 != 547.9346139608909 within 5 delta (545.2249363156393 difference) : Should be 547.9346139608909\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 46.62307692307692 != 490.34733215736594 within 5 delta (443.724255234289 difference) : Should be 490.34733215736594\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 76.47631300260626 != 554.627376238792 within 5 delta (478.1510632361857 difference) : Should be 554.627376238792\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1.557142857142857 != 567.6331903399503 within 5 delta (566.0760474828074 difference) : Should be 567.6331903399503\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 73.98907009709094 != 603.5200834424826 within 5 delta (529.5310133453917 difference) : Should be 603.5200834424826\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5.943344903329392 != 577.5686875966823 within 5 delta (571.6253426933529 difference) : Should be 577.5686875966823\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 288.3709746286274 != 567.4850578729724 within 5 delta (279.11408324434507 difference) : Should be 567.4850578729724\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 102.56186154314871 != 576.8956646267751 within 5 delta (474.3338030836264 difference) : Should be 576.8956646267751\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 51.05698415937386 != 582.5369211128726 within 5 delta (531.4799369534987 difference) : Should be 582.5369211128726\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 42.86768248594119 != 591.2071596234792 within 5 delta (548.3394771375381 difference) : Should be 591.2071596234792\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 115.06989035826453 != 596.8575107027427 within 5 delta (481.7876203444782 difference) : Should be 596.8575107027427\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 41.531531531531535 != 565.6198584953717 within 5 delta (524.0883269638401 difference) : Should be 565.6198584953717\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 40.01299291838462 != 556.1358169565176 within 5 delta (516.122824038133 difference) : Should be 556.1358169565176\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 46.94444005839345 != 574.3230763171343 within 5 delta (527.3786362587409 difference) : Should be 574.3230763171343\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 104.767356296635 != 609.6109586481815 within 5 delta (504.8436023515465 difference) : Should be 609.6109586481815\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 82.43574793369545 != 564.565675410277 within 5 delta (482.12992747658154 difference) : Should be 564.565675410277\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 37.63537529964532 != 585.6511335423938 within 5 delta (548.0157582427485 difference) : Should be 585.6511335423938\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 156.38123499286843 != 604.6325787312142 within 5 delta (448.2513437383457 difference) : Should be 604.6325787312142\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 53.92523341697795 != 597.1271556303736 within 5 delta (543.2019222133957 difference) : Should be 597.1271556303736\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 22.796219576108278 != 540.8626261361356 within 5 delta (518.0664065600274 difference) : Should be 540.8626261361356\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 50.342832647768724 != 602.7977058328137 within 5 delta (552.4548731850449 difference) : Should be 602.7977058328137\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 85.10233604941783 != 537.0042080039219 within 5 delta (451.9018719545041 difference) : Should be 537.0042080039219\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 41.92798998864428 != 618.7649406068009 within 5 delta (576.8369506181566 difference) : Should be 618.7649406068009\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 88.05926168462865 != 585.488544690936 within 5 delta (497.42928300630734 difference) : Should be 585.488544690936\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 11.410224667702142 != 578.4434737412838 within 5 delta (567.0332490735817 difference) : Should be 578.4434737412838\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 47.06838827943033 != 564.0537438862218 within 5 delta (516.9853556067915 difference) : Should be 564.0537438862218\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 39.811305860933174 != 580.0933592659727 within 5 delta (540.2820534050395 difference) : Should be 580.0933592659727\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 166.75542427342458 != 588.0499650068333 within 5 delta (421.2945407334087 difference) : Should be 588.0499650068333\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 89.74086149699157 != 557.2194660394891 within 5 delta (467.4786045424976 difference) : Should be 557.2194660394891\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 100.60344000418652 != 560.1634718059754 within 5 delta (459.5600318017889 difference) : Should be 560.1634718059754\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 99.03394909652542 != 607.156102826279 within 5 delta (508.1221537297536 difference) : Should be 607.156102826279\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 31.95708026556985 != 565.3971659369807 within 5 delta (533.4400856714109 difference) : Should be 565.3971659369807\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 3.09744798946074 != 597.0582336437974 within 5 delta (593.9607856543366 difference) : Should be 597.0582336437974\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 47.06647034862057 != 598.6268866186316 within 5 delta (551.560416270011 difference) : Should be 598.6268866186316\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 76.44 != 567.6592050352258 within 5 delta (491.2192050352258 difference) : Should be 567.6592050352258\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 22.057776155163292 != 629.0135870884948 within 5 delta (606.9558109333315 difference) : Should be 629.0135870884948\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 136.13616691123588 != 521.7745917827172 within 5 delta (385.6384248714813 difference) : Should be 521.7745917827172\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 39.128125788200265 != 538.3176425528058 within 5 delta (499.1895167646055 difference) : Should be 538.3176425528058\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 97.34283556844288 != 547.1068864686728 within 5 delta (449.7640509002299 difference) : Should be 547.1068864686728\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 77.74112404094603 != 496.0599250850267 within 5 delta (418.31880104408066 difference) : Should be 496.0599250850267\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 64.2224896342223 != 581.1334802058545 within 5 delta (516.9109905716323 difference) : Should be 581.1334802058545\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 87.67993224883477 != 590.6372287964807 within 5 delta (502.9572965476459 difference) : Should be 590.6372287964807\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 106.8373599812301 != 555.8893307328347 within 5 delta (449.0519707516046 difference) : Should be 555.8893307328347\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 44.53846153846154 != 565.4951349005169 within 5 delta (520.9566733620553 difference) : Should be 565.4951349005169\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 8.955882352941178 != 472.2821237478343 within 5 delta (463.32624139489315 difference) : Should be 472.2821237478343\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 47.7150403894315 != 556.242864052676 within 5 delta (508.52782366324453 difference) : Should be 556.242864052676\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 74.55349230107008 != 573.4194287516261 within 5 delta (498.86593645055603 difference) : Should be 573.4194287516261\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 90.08153938168317 != 592.3777817943853 within 5 delta (502.29624241270216 difference) : Should be 592.3777817943853\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 18.440429785843975 != 583.7353650452355 within 5 delta (565.2949352593915 difference) : Should be 583.7353650452355\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 85.420751315555 != 616.5840811532946 within 5 delta (531.1633298377396 difference) : Should be 616.5840811532946\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 103.40659350943248 != 578.6219380754779 within 5 delta (475.2153445660455 difference) : Should be 578.6219380754779\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 111.6951417497809 != 571.3575419860263 within 5 delta (459.6624002362454 difference) : Should be 571.3575419860263\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 24.25694767598651 != 584.0032449343068 within 5 delta (559.7462972583203 difference) : Should be 584.0032449343068\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 169.15384615384613 != 647.9366208321494 within 5 delta (478.78277467830327 difference) : Should be 647.9366208321494\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 142.65817222495212 != 665.2037590284957 within 5 delta (522.5455868035435 difference) : Should be 665.2037590284957\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 91.42675459136973 != 540.9218663551748 within 5 delta (449.495111763805 difference) : Should be 540.9218663551748\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 42.14620571611213 != 603.4782025569255 within 5 delta (561.3319968408133 difference) : Should be 603.4782025569255\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 178.98461538461538 != 519.8848274821586 within 5 delta (340.9002120975432 difference) : Should be 519.8848274821586\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 39.802009999496256 != 597.9288697941698 within 5 delta (558.1268597946736 difference) : Should be 597.9288697941698\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 68.43076923076924 != 588.6790427598178 within 5 delta (520.2482735290486 difference) : Should be 588.6790427598178\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 37.662364214107726 != 571.658930479846 within 5 delta (533.9965662657384 difference) : Should be 571.658930479846\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 149.47877057716548 != 464.84652095447404 within 5 delta (315.36775037730854 difference) : Should be 464.84652095447404\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 31.14432280975897 != 563.3372891139384 within 5 delta (532.1929663041794 difference) : Should be 563.3372891139384\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 131.39811642965086 != 656.1120016196586 within 5 delta (524.7138851900078 difference) : Should be 656.1120016196586\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 55.676151761517616 != 579.3938765879756 within 5 delta (523.7177248264579 difference) : Should be 579.3938765879756\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 70.35066713188625 != 607.5521214588863 within 5 delta (537.2014543270001 difference) : Should be 607.5521214588863\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5.80705204040695 != 597.987279129872 within 5 delta (592.1802270894651 difference) : Should be 597.987279129872\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5.147657274653191 != 527.5488792408822 within 5 delta (522.4012219662291 difference) : Should be 527.5488792408822\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 83.7137247568486 != 677.9964205252556 within 5 delta (594.282695768407 difference) : Should be 677.9964205252556\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 85.53155680526041 != 527.8365468765679 within 5 delta (442.30499007130754 difference) : Should be 527.8365468765679\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 30.89430894308943 != 536.0938489434827 within 5 delta (505.1995400003933 difference) : Should be 536.0938489434827\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 113.16399957137246 != 550.6823861522662 within 5 delta (437.5183865808937 difference) : Should be 550.6823861522662\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 28.014976419733625 != 618.780142717727 within 5 delta (590.7651662979933 difference) : Should be 618.780142717727\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 66.12043124913379 != 563.9838903474358 within 5 delta (497.86345909830203 difference) : Should be 563.9838903474358\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 14.658787517259729 != 629.6684969746235 within 5 delta (615.0097094573638 difference) : Should be 629.6684969746235\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 101.84846854823408 != 530.1275804396112 within 5 delta (428.27911189137706 difference) : Should be 530.1275804396112\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 86.33720242193313 != 610.2544252130119 within 5 delta (523.9172227910788 difference) : Should be 610.2544252130119\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 18.134875823808876 != 576.079737414578 within 5 delta (557.944861590769 difference) : Should be 576.079737414578\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 12.714175412123918 != 582.7324582934418 within 5 delta (570.0182828813179 difference) : Should be 582.7324582934418\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 98.67464643190605 != 593.1467581289446 within 5 delta (494.47211169703854 difference) : Should be 593.1467581289446\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 156.49198428423873 != 565.6378864739513 within 5 delta (409.1459021897126 difference) : Should be 565.6378864739513\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 112.15636716133943 != 604.0459368786857 within 5 delta (491.88956971734626 difference) : Should be 604.0459368786857\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 85.09365892295973 != 606.7862443061443 within 5 delta (521.6925853831846 difference) : Should be 606.7862443061443\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 66.3069450675216 != 698.6691639634604 within 5 delta (632.3622188959388 difference) : Should be 698.6691639634604\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 203.0666666666667 != 584.1707893340022 within 5 delta (381.10412266733545 difference) : Should be 584.1707893340022\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 23.949005216220293 != 622.2670011860081 within 5 delta (598.3179959697878 difference) : Should be 622.2670011860081\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 83.89529887623671 != 640.543049101939 within 5 delta (556.6477502257023 difference) : Should be 640.543049101939\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 80.21303089049042 != 635.3801685003964 within 5 delta (555.1671376099059 difference) : Should be 635.3801685003964\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 83.66715994766886 != 578.7662385584297 within 5 delta (495.0990786107608 difference) : Should be 578.7662385584297\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 68.53967205382831 != 585.4823444223166 within 5 delta (516.9426723684883 difference) : Should be 585.4823444223166\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 0.09642365197998398 != 573.9766486380942 within 5 delta (573.8802249861142 difference) : Should be 573.9766486380942\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 83.84397646725913 != 592.216619448196 within 5 delta (508.3726429809368 difference) : Should be 592.216619448196\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10.05501074078143 != 531.5231387414323 within 5 delta (521.4681280006508 difference) : Should be 531.5231387414323\n", + "\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.331s\n", + "\n", + "FAILED (failures=100)\n" + ] + } + ], "source": [ "# This will test your function \n", "test_stdev(st_dev)" @@ -285,19 +1436,35 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 104, "metadata": {}, "outputs": [], "source": [ "def pangram(string):\n", - " pass" + " letters = \"abcdefghijklmnopqrstuvwxyz\" \n", + " for i in letters:\n", + " if i not in string.lower():\n", + " return False\n", + " return True" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 105, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "..............................\n", + "----------------------------------------------------------------------\n", + "Ran 30 tests in 0.035s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_pangram(pangram)" @@ -318,7 +1485,26 @@ "metadata": {}, "outputs": [], "source": [ - "def sort_alpha(string):\n", + "def sort_alpha(string): \n", + " \n", + " #TA, my idea was to create a recurrent function that separates each word (letters until coma) \n", + " # and stores it in a separate list, then try convert list to strings replacing the separators \n", + " \n", + " alphabet = \"abcdefghijklmnopqrstuvwxyz\" \n", + " \n", + " letter = []\n", + " for i in string:\n", + " if i in alphabet:\n", + " letter.append(i)\n", + " else: \n", + " break\n", + " \n", + " print(*letter, sep = '')\n", + "\n", + " \n", + " \n", + " \n", + " \n", " pass" ] }, @@ -332,6 +1518,38 @@ "test_alpha(sort_alpha)" ] }, + { + "cell_type": "code", + "execution_count": 119, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "H\n", + "\n", + "[]\n" + ] + } + ], + "source": [ + "a_string = \"Hello,I,am\"\n", + "\n", + "alphabet = \"abcdefghijklmnopqrstuvwxyz\"\n", + "\n", + "letter = []\n", + "for i in a_string:\n", + " print(i)\n", + " if i in alphabet:\n", + " letter.append(i)\n", + " else: \n", + " break\n", + " \n", + "print(*letter, sep = '')\n", + "print(letter)" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -363,7 +1581,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -377,7 +1595,20 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.6" + "version": "3.9.12" + }, + "toc": { + "base_numbering": 1, + "nav_menu": {}, + "number_sections": true, + "sideBar": true, + "skip_h1_title": false, + "title_cell": "Table of Contents", + "title_sidebar": "Contents", + "toc_cell": false, + "toc_position": {}, + "toc_section_display": true, + "toc_window_display": false } }, "nbformat": 4, From caf719a9d5240ed57a54b0fc16ec06dd504b68c6 Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 6 Oct 2022 23:39:10 +0200 Subject: [PATCH 2/2] updated lab - #TA for help --- main.ipynb | 390 +++++++++++++++++++++++++++++------------------------ 1 file changed, 213 insertions(+), 177 deletions(-) diff --git a/main.ipynb b/main.ipynb index 1585141..51851e5 100644 --- a/main.ipynb +++ b/main.ipynb @@ -20,7 +20,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -426,7 +426,7 @@ }, { "cell_type": "code", - "execution_count": 72, + "execution_count": 25, "metadata": {}, "outputs": [ { @@ -438,6 +438,7 @@ } ], "source": [ + "# test\n", "a_list = [1,1,3,3,3,3,4,5,5,5,6,6,6,7]\n", "\n", "import operator\n", @@ -466,6 +467,7 @@ } ], "source": [ + "# test\n", "sorted_mydict = dict(sorted(counter.items(), key=operator.itemgetter(1), reverse = True))\n", "print(sorted_mydict)" ] @@ -487,7 +489,8 @@ } ], "source": [ - "list(sorted_mydict.values())[0]\n" + "# test\n", + "list(sorted_mydict.values())[0]" ] }, { @@ -522,7 +525,7 @@ }, { "cell_type": "code", - "execution_count": 88, + "execution_count": 59, "metadata": {}, "outputs": [], "source": [ @@ -530,48 +533,37 @@ "import math\n", "\n", "def st_dev(arr):\n", + " # Calculation of mean: sum/len\n", " mean_sum = 0\n", " for i in arr:\n", " mean_sum += i\n", - " mean = mean_sum/len(arr)\n", + " mean_length = 0\n", + " for i in arr:\n", + " mean_length += 1\n", + " mean = mean_sum/mean_length\n", " \n", + " # Substract mean from each element and square it. Store in list arr_sq\n", " arr_sq = []\n", " for i in arr:\n", " deviation_i = i - mean\n", " sq_dev_i = deviation_i ** 2\n", " arr_sq.append(sq_dev_i)\n", " \n", - " sum_sq = sum(arr_sq)\n", + " # Sum of squared deviations\n", + " sum_sq = 0\n", + " for i in arr_sq:\n", + " sum_sq += i\n", " \n", - " variance = sum_sq / (len(arr)-1)\n", + " # Calculation of variance\n", + " variance = sum_sq / (mean_length-1)\n", " \n", + " # Std is sqrt of variance\n", " return math.sqrt(variance)" ] }, { "cell_type": "code", - "execution_count": 87, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "1.4142135623730951" - ] - }, - "execution_count": 87, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "import math\n", - "math.sqrt(2)" - ] - }, - { - "cell_type": "code", - "execution_count": 89, + "execution_count": 60, "metadata": {}, "outputs": [ { @@ -585,7 +577,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 22.484169378665694 != 564.8731267017041 within 5 delta (542.3889573230384 difference) : Should be 564.8731267017041\n", + "AssertionError: 77.39296794773377 != 541.4678877332686 within 5 delta (464.07491978553486 difference) : Should be 541.4678877332686\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -593,7 +585,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 35.60731818086334 != 560.8186121995896 within 5 delta (525.2112940187262 difference) : Should be 560.8186121995896\n", + "AssertionError: 22.727567428862574 != 580.714116348875 within 5 delta (557.9865489200124 difference) : Should be 580.714116348875\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -601,7 +593,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 154.61729422721132 != 513.1300519521832 within 5 delta (358.51275772497183 difference) : Should be 513.1300519521832\n", + "AssertionError: 231.6379435221891 != 659.279418591735 within 5 delta (427.6414750695459 difference) : Should be 659.279418591735\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -609,7 +601,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 1.5764142748277603 != 569.3336125829869 within 5 delta (567.7571983081591 difference) : Should be 569.3336125829869\n", + "AssertionError: 142.32552002642973 != 591.1149110750279 within 5 delta (448.78939104859813 difference) : Should be 591.1149110750279\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -617,7 +609,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 69.57193366196175 != 566.7174418987303 within 5 delta (497.14550823676853 difference) : Should be 566.7174418987303\n", + "AssertionError: 50.41968425099444 != 591.8592582228958 within 5 delta (541.4395739719014 difference) : Should be 591.8592582228958\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -625,7 +617,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 3.9958847824190245 != 516.85574904403 within 5 delta (512.8598642616109 difference) : Should be 516.85574904403\n", + "AssertionError: 66.09946723149972 != 577.7014775186428 within 5 delta (511.6020102871431 difference) : Should be 577.7014775186428\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -633,7 +625,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 6.430999585280986 != 572.5308463263985 within 5 delta (566.0998467411175 difference) : Should be 572.5308463263985\n", + "AssertionError: 156.4353037952248 != 595.1080057111805 within 5 delta (438.67270191595566 difference) : Should be 595.1080057111805\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -641,7 +633,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 2.70967764525164 != 547.9346139608909 within 5 delta (545.2249363156393 difference) : Should be 547.9346139608909\n", + "AssertionError: 98.81121341394311 != 579.4194090841078 within 5 delta (480.60819567016466 difference) : Should be 579.4194090841078\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -649,7 +641,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 46.62307692307692 != 490.34733215736594 within 5 delta (443.724255234289 difference) : Should be 490.34733215736594\n", + "AssertionError: 17.983016944777578 != 605.0098878752954 within 5 delta (587.0268709305178 difference) : Should be 605.0098878752954\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -657,7 +649,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 76.47631300260626 != 554.627376238792 within 5 delta (478.1510632361857 difference) : Should be 554.627376238792\n", + "AssertionError: 69.20495661989281 != 627.4359831418473 within 5 delta (558.2310265219544 difference) : Should be 627.4359831418473\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -665,7 +657,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 1.557142857142857 != 567.6331903399503 within 5 delta (566.0760474828074 difference) : Should be 567.6331903399503\n", + "AssertionError: 57.31195317198018 != 610.8767739081532 within 5 delta (553.564820736173 difference) : Should be 610.8767739081532\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -673,7 +665,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 73.98907009709094 != 603.5200834424826 within 5 delta (529.5310133453917 difference) : Should be 603.5200834424826\n", + "AssertionError: 71.71457239370527 != 583.7863856734699 within 5 delta (512.0718132797647 difference) : Should be 583.7863856734699\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -681,7 +673,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 5.943344903329392 != 577.5686875966823 within 5 delta (571.6253426933529 difference) : Should be 577.5686875966823\n", + "AssertionError: 61.69418118702254 != 644.8396049344008 within 5 delta (583.1454237473782 difference) : Should be 644.8396049344008\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -689,7 +681,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 288.3709746286274 != 567.4850578729724 within 5 delta (279.11408324434507 difference) : Should be 567.4850578729724\n", + "AssertionError: 10.230821166618602 != 625.3946081811299 within 5 delta (615.1637870145113 difference) : Should be 625.3946081811299\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -697,7 +689,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 102.56186154314871 != 576.8956646267751 within 5 delta (474.3338030836264 difference) : Should be 576.8956646267751\n", + "AssertionError: 55.85835495006849 != 583.7656034533732 within 5 delta (527.9072485033047 difference) : Should be 583.7656034533732\n", "\n" ] }, @@ -711,7 +703,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 51.05698415937386 != 582.5369211128726 within 5 delta (531.4799369534987 difference) : Should be 582.5369211128726\n", + "AssertionError: 80.68246068363685 != 565.2559654647675 within 5 delta (484.5735047811307 difference) : Should be 565.2559654647675\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -719,7 +711,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 42.86768248594119 != 591.2071596234792 within 5 delta (548.3394771375381 difference) : Should be 591.2071596234792\n", + "AssertionError: 11.088163854068128 != 608.7218954209815 within 5 delta (597.6337315669133 difference) : Should be 608.7218954209815\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -727,7 +719,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 115.06989035826453 != 596.8575107027427 within 5 delta (481.7876203444782 difference) : Should be 596.8575107027427\n", + "AssertionError: 124.14576703420288 != 583.8646546092345 within 5 delta (459.71888757503166 difference) : Should be 583.8646546092345\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -735,7 +727,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 41.531531531531535 != 565.6198584953717 within 5 delta (524.0883269638401 difference) : Should be 565.6198584953717\n", + "AssertionError: 145.2297588552114 != 551.7633809627353 within 5 delta (406.53362210752385 difference) : Should be 551.7633809627353\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -743,7 +735,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 40.01299291838462 != 556.1358169565176 within 5 delta (516.122824038133 difference) : Should be 556.1358169565176\n", + "AssertionError: 119.62761307626317 != 550.8228253022469 within 5 delta (431.1952122259837 difference) : Should be 550.8228253022469\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -751,7 +743,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 46.94444005839345 != 574.3230763171343 within 5 delta (527.3786362587409 difference) : Should be 574.3230763171343\n", + "AssertionError: 92.84539794274579 != 573.2911356287277 within 5 delta (480.44573768598195 difference) : Should be 573.2911356287277\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -759,7 +751,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 104.767356296635 != 609.6109586481815 within 5 delta (504.8436023515465 difference) : Should be 609.6109586481815\n", + "AssertionError: 102.42612908117322 != 554.3855064246152 within 5 delta (451.959377343442 difference) : Should be 554.3855064246152\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -767,7 +759,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 82.43574793369545 != 564.565675410277 within 5 delta (482.12992747658154 difference) : Should be 564.565675410277\n", + "AssertionError: 92.04954954954954 != 601.4111583445899 within 5 delta (509.3616087950404 difference) : Should be 601.4111583445899\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -775,7 +767,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 37.63537529964532 != 585.6511335423938 within 5 delta (548.0157582427485 difference) : Should be 585.6511335423938\n", + "AssertionError: 39.25309938275106 != 565.6041922112665 within 5 delta (526.3510928285154 difference) : Should be 565.6041922112665\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -783,7 +775,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 156.38123499286843 != 604.6325787312142 within 5 delta (448.2513437383457 difference) : Should be 604.6325787312142\n", + "AssertionError: 48.076536397600634 != 554.4054456122046 within 5 delta (506.328909214604 difference) : Should be 554.4054456122046\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -791,7 +783,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 53.92523341697795 != 597.1271556303736 within 5 delta (543.2019222133957 difference) : Should be 597.1271556303736\n", + "AssertionError: 93.19559488136022 != 600.6426636854266 within 5 delta (507.44706880406636 difference) : Should be 600.6426636854266\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -799,7 +791,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 22.796219576108278 != 540.8626261361356 within 5 delta (518.0664065600274 difference) : Should be 540.8626261361356\n", + "AssertionError: 49.9674760795795 != 587.9192366892636 within 5 delta (537.9517606096841 difference) : Should be 587.9192366892636\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -807,7 +799,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 50.342832647768724 != 602.7977058328137 within 5 delta (552.4548731850449 difference) : Should be 602.7977058328137\n", + "AssertionError: 64.65683412653372 != 595.0128757015594 within 5 delta (530.3560415750258 difference) : Should be 595.0128757015594\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -815,7 +807,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 85.10233604941783 != 537.0042080039219 within 5 delta (451.9018719545041 difference) : Should be 537.0042080039219\n", + "AssertionError: 3.7880209126315227 != 589.1552944176879 within 5 delta (585.3672735050563 difference) : Should be 589.1552944176879\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -823,7 +815,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 41.92798998864428 != 618.7649406068009 within 5 delta (576.8369506181566 difference) : Should be 618.7649406068009\n", + "AssertionError: 21.079322512035887 != 572.6371516559054 within 5 delta (551.5578291438695 difference) : Should be 572.6371516559054\n", "\n" ] }, @@ -837,7 +829,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 88.05926168462865 != 585.488544690936 within 5 delta (497.42928300630734 difference) : Should be 585.488544690936\n", + "AssertionError: 93.16572952483514 != 551.686018635505 within 5 delta (458.52028911066986 difference) : Should be 551.686018635505\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -845,7 +837,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 11.410224667702142 != 578.4434737412838 within 5 delta (567.0332490735817 difference) : Should be 578.4434737412838\n", + "AssertionError: 1.4248484960566796 != 575.0649616738334 within 5 delta (573.6401131777767 difference) : Should be 575.0649616738334\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -853,7 +845,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 47.06838827943033 != 564.0537438862218 within 5 delta (516.9853556067915 difference) : Should be 564.0537438862218\n", + "AssertionError: 153.47714285714284 != 560.7719391652029 within 5 delta (407.29479630806003 difference) : Should be 560.7719391652029\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -861,7 +853,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 39.811305860933174 != 580.0933592659727 within 5 delta (540.2820534050395 difference) : Should be 580.0933592659727\n", + "AssertionError: 5.725225225225226 != 624.431617829643 within 5 delta (618.7063926044177 difference) : Should be 624.431617829643\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -869,7 +861,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 166.75542427342458 != 588.0499650068333 within 5 delta (421.2945407334087 difference) : Should be 588.0499650068333\n", + "AssertionError: 71.857911008204 != 569.9646303428812 within 5 delta (498.10671933467717 difference) : Should be 569.9646303428812\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -877,7 +869,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 89.74086149699157 != 557.2194660394891 within 5 delta (467.4786045424976 difference) : Should be 557.2194660394891\n", + "AssertionError: 0.5659164584181126 != 555.256803332529 within 5 delta (554.6908868741109 difference) : Should be 555.256803332529\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -885,7 +877,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 100.60344000418652 != 560.1634718059754 within 5 delta (459.5600318017889 difference) : Should be 560.1634718059754\n", + "AssertionError: 110.20071874855631 != 541.2974712493606 within 5 delta (431.09675250080426 difference) : Should be 541.2974712493606\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -893,7 +885,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 99.03394909652542 != 607.156102826279 within 5 delta (508.1221537297536 difference) : Should be 607.156102826279\n", + "AssertionError: 38.65384615384615 != 581.1641116030692 within 5 delta (542.510265449223 difference) : Should be 581.1641116030692\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -901,7 +893,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 31.95708026556985 != 565.3971659369807 within 5 delta (533.4400856714109 difference) : Should be 565.3971659369807\n", + "AssertionError: 7.035522707342518 != 567.0233677380663 within 5 delta (559.9878450307239 difference) : Should be 567.0233677380663\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -909,7 +901,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 3.09744798946074 != 597.0582336437974 within 5 delta (593.9607856543366 difference) : Should be 597.0582336437974\n", + "AssertionError: 111.05819191908883 != 603.2214057606179 within 5 delta (492.1632138415291 difference) : Should be 603.2214057606179\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -917,7 +909,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 47.06647034862057 != 598.6268866186316 within 5 delta (551.560416270011 difference) : Should be 598.6268866186316\n", + "AssertionError: 80.2560975609756 != 567.1302828748335 within 5 delta (486.8741853138579 difference) : Should be 567.1302828748335\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -925,7 +917,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 76.44 != 567.6592050352258 within 5 delta (491.2192050352258 difference) : Should be 567.6592050352258\n", + "AssertionError: 29.35255157604883 != 541.7944107485886 within 5 delta (512.4418591725397 difference) : Should be 541.7944107485886\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -933,7 +925,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 22.057776155163292 != 629.0135870884948 within 5 delta (606.9558109333315 difference) : Should be 629.0135870884948\n", + "AssertionError: 40.45471699300499 != 550.542381915974 within 5 delta (510.08766492296905 difference) : Should be 550.542381915974\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -941,7 +933,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 136.13616691123588 != 521.7745917827172 within 5 delta (385.6384248714813 difference) : Should be 521.7745917827172\n", + "AssertionError: 69.89334478657139 != 582.0025730617564 within 5 delta (512.1092282751849 difference) : Should be 582.0025730617564\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -949,7 +941,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 39.128125788200265 != 538.3176425528058 within 5 delta (499.1895167646055 difference) : Should be 538.3176425528058\n", + "AssertionError: 118.10785130030884 != 585.6371909342173 within 5 delta (467.5293396339085 difference) : Should be 585.6371909342173\n", "\n" ] }, @@ -963,7 +955,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 97.34283556844288 != 547.1068864686728 within 5 delta (449.7640509002299 difference) : Should be 547.1068864686728\n", + "AssertionError: 150.58160317540796 != 643.4568485213993 within 5 delta (492.8752453459913 difference) : Should be 643.4568485213993\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -971,7 +963,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 77.74112404094603 != 496.0599250850267 within 5 delta (418.31880104408066 difference) : Should be 496.0599250850267\n", + "AssertionError: 178.39264803044603 != 573.2006835794197 within 5 delta (394.80803554897363 difference) : Should be 573.2006835794197\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -979,7 +971,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 64.2224896342223 != 581.1334802058545 within 5 delta (516.9109905716323 difference) : Should be 581.1334802058545\n", + "AssertionError: 122.33568272040118 != 483.94986999343917 within 5 delta (361.614187273038 difference) : Should be 483.94986999343917\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -987,7 +979,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 87.67993224883477 != 590.6372287964807 within 5 delta (502.9572965476459 difference) : Should be 590.6372287964807\n", + "AssertionError: 121.4781882318403 != 578.1339628402415 within 5 delta (456.65577460840115 difference) : Should be 578.1339628402415\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -995,7 +987,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 106.8373599812301 != 555.8893307328347 within 5 delta (449.0519707516046 difference) : Should be 555.8893307328347\n", + "AssertionError: 87.92284101093739 != 615.5571142222021 within 5 delta (527.6342732112647 difference) : Should be 615.5571142222021\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1003,7 +995,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 44.53846153846154 != 565.4951349005169 within 5 delta (520.9566733620553 difference) : Should be 565.4951349005169\n", + "AssertionError: 139.49852200776715 != 591.8125888749556 within 5 delta (452.31406686718844 difference) : Should be 591.8125888749556\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1011,7 +1003,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 8.955882352941178 != 472.2821237478343 within 5 delta (463.32624139489315 difference) : Should be 472.2821237478343\n", + "AssertionError: 64.19313113893828 != 544.3408405595159 within 5 delta (480.1477094205776 difference) : Should be 544.3408405595159\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1019,7 +1011,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 47.7150403894315 != 556.242864052676 within 5 delta (508.52782366324453 difference) : Should be 556.242864052676\n", + "AssertionError: 52.847238991113336 != 594.0138716514779 within 5 delta (541.1666326603645 difference) : Should be 594.0138716514779\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1027,7 +1019,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 74.55349230107008 != 573.4194287516261 within 5 delta (498.86593645055603 difference) : Should be 573.4194287516261\n", + "AssertionError: 86.99138363335925 != 610.3670132871623 within 5 delta (523.3756296538031 difference) : Should be 610.3670132871623\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1035,7 +1027,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 90.08153938168317 != 592.3777817943853 within 5 delta (502.29624241270216 difference) : Should be 592.3777817943853\n", + "AssertionError: 75.00382708855464 != 609.3498484490482 within 5 delta (534.3460213604935 difference) : Should be 609.3498484490482\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1043,7 +1035,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 18.440429785843975 != 583.7353650452355 within 5 delta (565.2949352593915 difference) : Should be 583.7353650452355\n", + "AssertionError: 95.82893097451306 != 564.9846319332372 within 5 delta (469.15570095872414 difference) : Should be 564.9846319332372\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1051,7 +1043,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 85.420751315555 != 616.5840811532946 within 5 delta (531.1633298377396 difference) : Should be 616.5840811532946\n", + "AssertionError: 2.9343484184782223 != 541.8676812417945 within 5 delta (538.9333328233163 difference) : Should be 541.8676812417945\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1059,7 +1051,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 103.40659350943248 != 578.6219380754779 within 5 delta (475.2153445660455 difference) : Should be 578.6219380754779\n", + "AssertionError: 80.2867375125595 != 506.1732371574901 within 5 delta (425.8864996449306 difference) : Should be 506.1732371574901\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1067,7 +1059,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 111.6951417497809 != 571.3575419860263 within 5 delta (459.6624002362454 difference) : Should be 571.3575419860263\n", + "AssertionError: 307.7001231346521 != 452.71704769615786 within 5 delta (145.0169245615058 difference) : Should be 452.71704769615786\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1075,7 +1067,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 24.25694767598651 != 584.0032449343068 within 5 delta (559.7462972583203 difference) : Should be 584.0032449343068\n", + "AssertionError: 230.8750171710205 != 651.3382308056936 within 5 delta (420.4632136346731 difference) : Should be 651.3382308056936\n", "\n" ] }, @@ -1089,7 +1081,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 169.15384615384613 != 647.9366208321494 within 5 delta (478.78277467830327 difference) : Should be 647.9366208321494\n", + "AssertionError: 49.45036294437516 != 653.6151505569574 within 5 delta (604.1647876125822 difference) : Should be 653.6151505569574\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1097,7 +1089,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 142.65817222495212 != 665.2037590284957 within 5 delta (522.5455868035435 difference) : Should be 665.2037590284957\n", + "AssertionError: 75.81302819401849 != 617.1698262796441 within 5 delta (541.3567980856257 difference) : Should be 617.1698262796441\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1105,7 +1097,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 91.42675459136973 != 540.9218663551748 within 5 delta (449.495111763805 difference) : Should be 540.9218663551748\n", + "AssertionError: 20.157514404087426 != 545.9732334302236 within 5 delta (525.8157190261361 difference) : Should be 545.9732334302236\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1113,7 +1105,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 42.14620571611213 != 603.4782025569255 within 5 delta (561.3319968408133 difference) : Should be 603.4782025569255\n", + "AssertionError: 32.28229190913954 != 570.1155931228759 within 5 delta (537.8333012137364 difference) : Should be 570.1155931228759\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1121,7 +1113,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 178.98461538461538 != 519.8848274821586 within 5 delta (340.9002120975432 difference) : Should be 519.8848274821586\n", + "AssertionError: 66.25411027515153 != 499.0096469038425 within 5 delta (432.75553662869095 difference) : Should be 499.0096469038425\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1129,7 +1121,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 39.802009999496256 != 597.9288697941698 within 5 delta (558.1268597946736 difference) : Should be 597.9288697941698\n", + "AssertionError: 26.603161774876643 != 564.4801561634539 within 5 delta (537.8769943885773 difference) : Should be 564.4801561634539\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1137,7 +1129,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 68.43076923076924 != 588.6790427598178 within 5 delta (520.2482735290486 difference) : Should be 588.6790427598178\n", + "AssertionError: 56.39995372353108 != 527.8328224796579 within 5 delta (471.4328687561268 difference) : Should be 527.8328224796579\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1145,7 +1137,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 37.662364214107726 != 571.658930479846 within 5 delta (533.9965662657384 difference) : Should be 571.658930479846\n", + "AssertionError: 41.88225859887726 != 532.3614861614727 within 5 delta (490.4792275625955 difference) : Should be 532.3614861614727\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1153,7 +1145,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 149.47877057716548 != 464.84652095447404 within 5 delta (315.36775037730854 difference) : Should be 464.84652095447404\n", + "AssertionError: 90.1280864106741 != 537.6599276055534 within 5 delta (447.53184119487935 difference) : Should be 537.6599276055534\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1161,7 +1153,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 31.14432280975897 != 563.3372891139384 within 5 delta (532.1929663041794 difference) : Should be 563.3372891139384\n", + "AssertionError: 13.61654975187372 != 569.7867521285789 within 5 delta (556.1702023767052 difference) : Should be 569.7867521285789\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1169,7 +1161,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 131.39811642965086 != 656.1120016196586 within 5 delta (524.7138851900078 difference) : Should be 656.1120016196586\n", + "AssertionError: 11.457431093955018 != 612.0133688379394 within 5 delta (600.5559377439844 difference) : Should be 612.0133688379394\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1177,7 +1169,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 55.676151761517616 != 579.3938765879756 within 5 delta (523.7177248264579 difference) : Should be 579.3938765879756\n", + "AssertionError: 152.91471487165734 != 622.6563438853291 within 5 delta (469.74162901367174 difference) : Should be 622.6563438853291\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1185,7 +1177,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 70.35066713188625 != 607.5521214588863 within 5 delta (537.2014543270001 difference) : Should be 607.5521214588863\n", + "AssertionError: 84.8428563169832 != 585.2242989532718 within 5 delta (500.3814426362886 difference) : Should be 585.2242989532718\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1193,7 +1185,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 5.80705204040695 != 597.987279129872 within 5 delta (592.1802270894651 difference) : Should be 597.987279129872\n", + "AssertionError: 17.173719578780222 != 550.2344554695893 within 5 delta (533.060735890809 difference) : Should be 550.2344554695893\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1201,7 +1193,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 5.147657274653191 != 527.5488792408822 within 5 delta (522.4012219662291 difference) : Should be 527.5488792408822\n", + "AssertionError: 180.5387301710839 != 560.9590907091847 within 5 delta (380.4203605381008 difference) : Should be 560.9590907091847\n", "\n" ] }, @@ -1215,7 +1207,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 83.7137247568486 != 677.9964205252556 within 5 delta (594.282695768407 difference) : Should be 677.9964205252556\n", + "AssertionError: 72.67249230192478 != 516.0264093067726 within 5 delta (443.35391700484786 difference) : Should be 516.0264093067726\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1223,7 +1215,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 85.53155680526041 != 527.8365468765679 within 5 delta (442.30499007130754 difference) : Should be 527.8365468765679\n", + "AssertionError: 15.695067613498525 != 598.2846829936079 within 5 delta (582.5896153801094 difference) : Should be 598.2846829936079\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1231,7 +1223,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 30.89430894308943 != 536.0938489434827 within 5 delta (505.1995400003933 difference) : Should be 536.0938489434827\n", + "AssertionError: 167.03728489608105 != 609.8692855477684 within 5 delta (442.8320006516874 difference) : Should be 609.8692855477684\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1239,7 +1231,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 113.16399957137246 != 550.6823861522662 within 5 delta (437.5183865808937 difference) : Should be 550.6823861522662\n", + "AssertionError: 23.39917571945392 != 585.7626719085285 within 5 delta (562.3634961890747 difference) : Should be 585.7626719085285\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1247,7 +1239,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 28.014976419733625 != 618.780142717727 within 5 delta (590.7651662979933 difference) : Should be 618.780142717727\n", + "AssertionError: 17.09331843557216 != 582.4586250621205 within 5 delta (565.3653066265483 difference) : Should be 582.4586250621205\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1255,7 +1247,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 66.12043124913379 != 563.9838903474358 within 5 delta (497.86345909830203 difference) : Should be 563.9838903474358\n", + "AssertionError: 31.744808979632428 != 537.894972921238 within 5 delta (506.1501639416056 difference) : Should be 537.894972921238\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1263,7 +1255,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 14.658787517259729 != 629.6684969746235 within 5 delta (615.0097094573638 difference) : Should be 629.6684969746235\n", + "AssertionError: 50.50598416285559 != 571.501148378535 within 5 delta (520.9951642156794 difference) : Should be 571.501148378535\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1271,7 +1263,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 101.84846854823408 != 530.1275804396112 within 5 delta (428.27911189137706 difference) : Should be 530.1275804396112\n", + "AssertionError: 91.0057882194306 != 513.1516724397758 within 5 delta (422.1458842203452 difference) : Should be 513.1516724397758\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1279,7 +1271,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 86.33720242193313 != 610.2544252130119 within 5 delta (523.9172227910788 difference) : Should be 610.2544252130119\n", + "AssertionError: 55.15701728266861 != 604.8709921233614 within 5 delta (549.7139748406928 difference) : Should be 604.8709921233614\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1287,7 +1279,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 18.134875823808876 != 576.079737414578 within 5 delta (557.944861590769 difference) : Should be 576.079737414578\n", + "AssertionError: 81.91792582949829 != 577.6511539577815 within 5 delta (495.7332281282832 difference) : Should be 577.6511539577815\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1295,7 +1287,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 12.714175412123918 != 582.7324582934418 within 5 delta (570.0182828813179 difference) : Should be 582.7324582934418\n", + "AssertionError: 12.90351841748611 != 528.78504135393 within 5 delta (515.8815229364438 difference) : Should be 528.78504135393\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1303,7 +1295,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 98.67464643190605 != 593.1467581289446 within 5 delta (494.47211169703854 difference) : Should be 593.1467581289446\n", + "AssertionError: 180.55546618026224 != 583.202052636249 within 5 delta (402.64658645598684 difference) : Should be 583.202052636249\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1311,7 +1303,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 156.49198428423873 != 565.6378864739513 within 5 delta (409.1459021897126 difference) : Should be 565.6378864739513\n", + "AssertionError: 21.695337961451273 != 587.5608171385137 within 5 delta (565.8654791770624 difference) : Should be 587.5608171385137\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1319,7 +1311,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 112.15636716133943 != 604.0459368786857 within 5 delta (491.88956971734626 difference) : Should be 604.0459368786857\n", + "AssertionError: 52.140585516780526 != 542.4019191071384 within 5 delta (490.2613335903579 difference) : Should be 542.4019191071384\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1327,7 +1319,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 85.09365892295973 != 606.7862443061443 within 5 delta (521.6925853831846 difference) : Should be 606.7862443061443\n", + "AssertionError: 90.8447899214413 != 608.0412569480686 within 5 delta (517.1964670266273 difference) : Should be 608.0412569480686\n", "\n" ] }, @@ -1341,7 +1333,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 66.3069450675216 != 698.6691639634604 within 5 delta (632.3622188959388 difference) : Should be 698.6691639634604\n", + "AssertionError: 115.17812954473487 != 568.8232962642101 within 5 delta (453.6451667194752 difference) : Should be 568.8232962642101\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1349,7 +1341,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 203.0666666666667 != 584.1707893340022 within 5 delta (381.10412266733545 difference) : Should be 584.1707893340022\n", + "AssertionError: 156.87431599980974 != 656.8287286926318 within 5 delta (499.9544126928221 difference) : Should be 656.8287286926318\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1357,7 +1349,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 23.949005216220293 != 622.2670011860081 within 5 delta (598.3179959697878 difference) : Should be 622.2670011860081\n", + "AssertionError: 92.34136027476194 != 613.31195730691 within 5 delta (520.9705970321481 difference) : Should be 613.31195730691\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1365,7 +1357,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 83.89529887623671 != 640.543049101939 within 5 delta (556.6477502257023 difference) : Should be 640.543049101939\n", + "AssertionError: 24.16260162601626 != 581.2834924931091 within 5 delta (557.1208908670928 difference) : Should be 581.2834924931091\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1373,7 +1365,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 80.21303089049042 != 635.3801685003964 within 5 delta (555.1671376099059 difference) : Should be 635.3801685003964\n", + "AssertionError: 18.382919766196956 != 515.1652148104768 within 5 delta (496.7822950442798 difference) : Should be 515.1652148104768\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1381,7 +1373,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 83.66715994766886 != 578.7662385584297 within 5 delta (495.0990786107608 difference) : Should be 578.7662385584297\n", + "AssertionError: 76.77166722749278 != 586.7781735886228 within 5 delta (510.00650636113005 difference) : Should be 586.7781735886228\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1389,7 +1381,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 68.53967205382831 != 585.4823444223166 within 5 delta (516.9426723684883 difference) : Should be 585.4823444223166\n", + "AssertionError: 112.89426058960692 != 556.3418413569524 within 5 delta (443.44758076734547 difference) : Should be 556.3418413569524\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1397,7 +1389,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 0.09642365197998398 != 573.9766486380942 within 5 delta (573.8802249861142 difference) : Should be 573.9766486380942\n", + "AssertionError: 139.83477949192596 != 586.6989172823058 within 5 delta (446.8641377903799 difference) : Should be 586.6989172823058\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1405,7 +1397,7 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 83.84397646725913 != 592.216619448196 within 5 delta (508.3726429809368 difference) : Should be 592.216619448196\n", + "AssertionError: 30.53387533875339 != 580.9056666586733 within 5 delta (550.3717913199199 difference) : Should be 580.9056666586733\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", @@ -1413,10 +1405,10 @@ "Traceback (most recent call last):\n", " File \"C:\\Users\\mplan\\Ironhack\\Bootcamp\\week-1\\day4-lab\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - "AssertionError: 10.05501074078143 != 531.5231387414323 within 5 delta (521.4681280006508 difference) : Should be 531.5231387414323\n", + "AssertionError: 18.00271002710027 != 611.7486770253093 within 5 delta (593.745966998209 difference) : Should be 611.7486770253093\n", "\n", "----------------------------------------------------------------------\n", - "Ran 100 tests in 0.331s\n", + "Ran 100 tests in 0.103s\n", "\n", "FAILED (failures=100)\n" ] @@ -1481,73 +1473,67 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 30, "metadata": {}, "outputs": [], "source": [ - "def sort_alpha(string): \n", - " \n", - " #TA, my idea was to create a recurrent function that separates each word (letters until coma) \n", - " # and stores it in a separate list, then try convert list to strings replacing the separators \n", + "def sort_alpha(string):\n", " \n", - " alphabet = \"abcdefghijklmnopqrstuvwxyz\" \n", + " string_char = \"\"\n", + " store_words = []\n", " \n", - " letter = []\n", " for i in string:\n", - " if i in alphabet:\n", - " letter.append(i)\n", - " else: \n", - " break\n", - " \n", - " print(*letter, sep = '')\n", - "\n", - " \n", - " \n", + " if i.isalpha()\n", + " string_char += i\n", " \n", - " \n", - " pass" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "# This will test your function \n", - "test_alpha(sort_alpha)" + " else:\n", + " store_words.append(string_char)\n", + " \n", + " #TA help -> here I would like to jump to the next position of the string (jumping the comma)\n", + " # The idea is to keep store the words as elements in a list (see below)\n", + " \n", + " " ] }, { "cell_type": "code", - "execution_count": 119, + "execution_count": 58, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "H\n", - "\n", - "[]\n" + "Heyitsme\n", + "['Hey', 'Heyits']\n" ] } ], "source": [ - "a_string = \"Hello,I,am\"\n", + "a_string = \"Hey,its,me\"\n", + "string_char = \"\"\n", "\n", - "alphabet = \"abcdefghijklmnopqrstuvwxyz\"\n", + "store_words = []\n", "\n", - "letter = []\n", "for i in a_string:\n", - " print(i)\n", - " if i in alphabet:\n", - " letter.append(i)\n", - " else: \n", - " break\n", - " \n", - "print(*letter, sep = '')\n", - "print(letter)" + " if i.isalpha():\n", + " string_char += i\n", + " \n", + " else:\n", + " store_words.append(string_char)\n", + "\n", + "print(string_char)\n", + "print(store_words) #TA - why does it reset on the second element ('Heyits')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# This will test your function \n", + "test_alpha(sort_alpha)" ] }, { @@ -1560,19 +1546,69 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 21, "metadata": {}, "outputs": [], "source": [ "def check_pass(string):\n", - " pass" + " \n", + " points_length = 0\n", + " points_lower = 0\n", + " points_upper = 0\n", + " points_digit = 0\n", + " points_special = 0\n", + " \n", + " counter_length = 0\n", + " for i in string: # at least 8 charac\n", + " if i in string:\n", + " counter_length += 1 \n", + " if counter_length >= 8:\n", + " points_length = 1\n", + " \n", + " for i in string: # at least one lower case\n", + " if i.islower():\n", + " points_lower = 1\n", + " \n", + " for i in string: # at least one upper\n", + " if i.isupper():\n", + " points_upper = 1\n", + " \n", + " for i in string: # at least one number\n", + " if i.isdigit():\n", + " points_digit = 1\n", + " \n", + " points_special = 0\n", + " special = [\"#\", \"@\", \"!\", \"$\", \"%\", \"&\", \"(\", \")\", \"^\", \"*\", \"[\", \"]\", \"{\", \"}\"] # at least one special char\n", + " for i in string:\n", + " if i in special:\n", + " points_special = 1\n", + " \n", + " total_points = points_length + points_lower + points_upper + points_digit + points_special\n", + " \n", + " if total_points < 5:\n", + " return False\n", + " \n", + " else:\n", + " return True\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 23, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.160s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_pass(check_pass)"