From 5feb9d5d2c84e0865a20a2188d385d5c4536d7af Mon Sep 17 00:00:00 2001 From: hyejeonglee Date: Wed, 8 Oct 2025 17:59:44 +0200 Subject: [PATCH 1/2] initial commit_day3 --- main.ipynb | 848 ++++++++++++++++++++++-- mod/__pycache__/testing.cpython-313.pyc | Bin 0 -> 20215 bytes 2 files changed, 799 insertions(+), 49 deletions(-) create mode 100644 mod/__pycache__/testing.cpython-313.pyc diff --git a/main.ipynb b/main.ipynb index b05630a..3dfc637 100644 --- a/main.ipynb +++ b/main.ipynb @@ -20,7 +20,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 54, "metadata": {}, "outputs": [], "source": [ @@ -37,19 +37,34 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "def greater(a,b):\n", - "#your code here" + " if a>b:\n", + " return a\n", + " elif b>a:\n", + " return b" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.102s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_greater(greater)" @@ -57,11 +72,22 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "10" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "#your code here" + "greater(3,10)" ] }, { @@ -73,18 +99,57 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 26, "metadata": {}, "outputs": [], "source": [ - "#your code here" + "def greatest(list):\n", + " largest=list[0]\n", + " for i in list:\n", + " if i > largest:\n", + " largest=i\n", + " return largest\n", + " \n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 27, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "10" + ] + }, + "execution_count": 27, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "a=[1, 4, 5, 7,10]\n", + "greatest(a)" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.112s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_greatest(greatest)" @@ -99,21 +164,36 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 35, "metadata": {}, "outputs": [], "source": [ "def sum_all(lst):\n", - "#your code here" + " total=0\n", + " for i in lst:\n", + " total+=i\n", + " return total\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 36, "metadata": { "scrolled": true }, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.115s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_sum(sum_all)" @@ -128,21 +208,36 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 34, "metadata": {}, "outputs": [], "source": [ "def mult_all(lst):\n", - "#your code here" + " multi=1\n", + " for i in lst:\n", + " multi*=i\n", + " return multi" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 35, "metadata": { "scrolled": true }, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.101s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_mult(mult_all)" @@ -157,19 +252,41 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 37, "metadata": {}, "outputs": [], "source": [ "def oper_all(arr, oper = \"*\"):\n", - "#your code here" + " if oper == \"+\":\n", + " num1=0\n", + " for i in arr:\n", + " num1+=i\n", + " return num1\n", + " if oper == \"*\":\n", + " num2=1\n", + " for i in arr:\n", + " num2*=i\n", + " return num2\n", + "\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 38, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.110s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_operations(oper_all)" @@ -184,12 +301,16 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 39, "metadata": {}, "outputs": [], "source": [ "def factorial(n):\n", - "#your code here" + " if n <= 0:\n", + " return 1\n", + " else:\n", + " factor=n*factorial(n-1)\n", + " return factor\n" ] }, { @@ -213,9 +334,21 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 40, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.110s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_factorial(factorial)" @@ -232,19 +365,53 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 52, "metadata": {}, "outputs": [], "source": [ "def unique(lst_un):\n", - "#your code here" + " new_list=[]\n", + " for i in lst_un:\n", + " if i not in new_list:\n", + " new_list.append(i)\n", + " return new_list" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[1, 2, 3, 4]\n" + ] + } + ], + "source": [ + "lst_un=[1,2,3,4,1,2,3,4]\n", + "unique(lst_un)" + ] + }, + { + "cell_type": "code", + "execution_count": 53, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.237s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_unique(unique)" @@ -260,19 +427,76 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 12, "metadata": {}, "outputs": [], "source": [ "def mode_counter(arr):\n", - "#your code here" + " counter={}\n", + " for i in arr:\n", + " if i in counter:\n", + " counter[i]+=1\n", + " else:\n", + " counter[i]=1\n", + "\n", + "\n", + " counter_value = None\n", + " mode_count=0\n", + "\n", + " for key in counter:\n", + " if counter[key] > mode_count:\n", + " mode_count=counter[key]\n", + " counter_value= key\n", + " return counter_value\n", + "\n", + " " ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 13, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "4" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "arr=[2,3,4,4]\n", + "mode_counter(arr)" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................." + ] + }, + { + "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_mode(mode_counter)" @@ -288,19 +512,544 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 56, "metadata": {}, "outputs": [], "source": [ "def st_dev(list_sd):\n", - "#your code here" + " total=0\n", + " for i in list_sd:\n", + " total+=i\n", + "\n", + " count=0\n", + " for i in list_sd:\n", + " count+=1\n", + "\n", + " mean=total/count\n", + "\n", + " st=0\n", + " for i in list_sd:\n", + " diff= i-mean\n", + " st+=diff*diff\n", + "\n", + " variance=st/count\n", + " std=variance**0.5\n", + " return std" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 58, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "1.4142135623730951" + ] + }, + "execution_count": 58, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "list_sd=[1,2,3,4,5]\n", + "st_dev(list_sd)" + ] + }, + { + "cell_type": "code", + "execution_count": 57, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "FF.FF.F" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "FF.F.FFF...FF.FF..F.FFFF...F...F.FF.F...FF....F.FFF....F..FF.F..FF..FFF...FFFFFF..F.F.F...FFF\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 490.5109549373798 != 497.46890466752905 within 5 delta (6.9579497301492665 difference) : Should be 497.46890466752905\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 585.2866234492408 != 594.3613758276673 within 5 delta (9.074752378426524 difference) : Should be 594.3613758276673\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 629.552168437721 != 635.4635860946488 within 5 delta (5.911417656927824 difference) : Should be 635.4635860946488\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 610.9220572217047 != 616.0776090225834 within 5 delta (5.155551800878698 difference) : Should be 616.0776090225834\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 559.5940060396081 != 566.2166508334625 within 5 delta (6.62264479385442 difference) : Should be 566.2166508334625\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 627.3873728053152 != 649.4076275088449 within 5 delta (22.02025470352976 difference) : Should be 649.4076275088449\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 600.48181934148 != 607.5883604261687 within 5 delta (7.106541084688729 difference) : Should be 607.5883604261687\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 576.3424594168995 != 582.0773515068722 within 5 delta (5.734892089972732 difference) : Should be 582.0773515068722\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 489.71919845288215 != 498.0910732400043 within 5 delta (8.371874787122124 difference) : Should be 498.0910732400043\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 582.1308971164054 != 592.8130889796619 within 5 delta (10.682191863256435 difference) : Should be 592.8130889796619\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 460.6858659955043 != 474.8641214321518 within 5 delta (14.178255436647532 difference) : Should be 474.8641214321518\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 613.4719864153077 != 630.282550581286 within 5 delta (16.81056416597835 difference) : Should be 630.282550581286\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 577.0270311143822 != 585.7046162567411 within 5 delta (8.677585142358907 difference) : Should be 585.7046162567411\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 447.4792493193719 != 464.3711628892097 within 5 delta (16.89191356983781 difference) : Should be 464.3711628892097\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 568.1307065113824 != 573.2722656682561 within 5 delta (5.1415591568736545 difference) : Should be 573.2722656682561\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 592.1341026790768 != 602.2567864139094 within 5 delta (10.122683734832549 difference) : Should be 602.2567864139094\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 510.78779357775096 != 516.9793868338948 within 5 delta (6.19159325614379 difference) : Should be 516.9793868338948\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 522.6994581971868 != 530.8038090595444 within 5 delta (8.104350862357592 difference) : Should be 530.8038090595444\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 611.8988342310626 != 622.3594011003056 within 5 delta (10.460566869243053 difference) : Should be 622.3594011003056\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 518.046422305246 != 527.5526541588554 within 5 delta (9.506231853609393 difference) : Should be 527.5526541588554\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 539.4933572915688 != 547.1461275752895 within 5 delta (7.652770283720656 difference) : Should be 547.1461275752895\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 603.2579239185434 != 608.5266521097401 within 5 delta (5.268728191196715 difference) : Should be 608.5266521097401\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 541.1311106309944 != 557.7851816098465 within 5 delta (16.654070978852133 difference) : Should be 557.7851816098465\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 533.157683575465 != 542.2721503613027 within 5 delta (9.114466785837749 difference) : Should be 542.2721503613027\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 545.5334922767958 != 552.3105656925366 within 5 delta (6.7770734157408015 difference) : Should be 552.3105656925366\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 623.8694980421768 != 629.8396771146802 within 5 delta (5.970179072503356 difference) : Should be 629.8396771146802\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 669.1303255258016 != 675.1859270148934 within 5 delta (6.055601489091828 difference) : Should be 675.1859270148934\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 561.7556037254072 != 569.0991259127973 within 5 delta (7.343522187390022 difference) : Should be 569.0991259127973\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 638.3848321173922 != 650.0992923754724 within 5 delta (11.71446025808018 difference) : Should be 650.0992923754724\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 614.8077640184971 != 620.9254048848159 within 5 delta (6.117640866318766 difference) : Should be 620.9254048848159\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 552.0612007159509 != 560.8947408224275 within 5 delta (8.833540106476562 difference) : Should be 560.8947408224275\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 599.463500084771 != 604.9886261000596 within 5 delta (5.525126015288606 difference) : Should be 604.9886261000596\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 623.3762518134939 != 630.7537423586532 within 5 delta (7.377490545159276 difference) : Should be 630.7537423586532\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 621.7326238637953 != 635.7058881940492 within 5 delta (13.973264330253869 difference) : Should be 635.7058881940492\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 559.4385924884267 != 565.7601331684907 within 5 delta (6.321540680064004 difference) : Should be 565.7601331684907\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 578.4519354117785 != 583.6869012589701 within 5 delta (5.2349658471915745 difference) : Should be 583.6869012589701\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 518.6432036836815 != 524.6392780692495 within 5 delta (5.996074385568022 difference) : Should be 524.6392780692495\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 585.5877872095059 != 590.9850237666758 within 5 delta (5.39723655716989 difference) : Should be 590.9850237666758\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 566.1497212974742 != 581.663544957189 within 5 delta (15.513823659714717 difference) : Should be 581.663544957189\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 411.0968134150397 != 421.77643117502055 within 5 delta (10.679617759980829 difference) : Should be 421.77643117502055\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 441.09999850111757 != 451.480242193287 within 5 delta (10.380243692169415 difference) : Should be 451.480242193287\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 619.9244254019005 != 628.7181188862565 within 5 delta (8.793693484356027 difference) : Should be 628.7181188862565\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 615.2686525355404 != 623.3117213917059 within 5 delta (8.043068856165519 difference) : Should be 623.3117213917059\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 455.98295540656096 != 465.0131974967526 within 5 delta (9.03024209019162 difference) : Should be 465.0131974967526\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 584.1136033983167 != 590.4285285820396 within 5 delta (6.314925183722835 difference) : Should be 590.4285285820396\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 603.0574716382765 != 610.5491560482411 within 5 delta (7.491684409964591 difference) : Should be 610.5491560482411\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 471.1496607602166 != 476.8607742575936 within 5 delta (5.711113497377028 difference) : Should be 476.8607742575936\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 529.4253382212415 != 535.6909449326496 within 5 delta (6.265606711408054 difference) : Should be 535.6909449326496\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 576.0363979435933 != 581.4453090784516 within 5 delta (5.408911134858272 difference) : Should be 581.4453090784516\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 627.4285246942475 != 640.3665564867256 within 5 delta (12.938031792478114 difference) : Should be 640.3665564867256\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 506.38056543584844 != 515.3437491645316 within 5 delta (8.963183728683134 difference) : Should be 515.3437491645316\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: 559.6306190265736 != 572.8002001257238 within 5 delta (13.16958109915015 difference) : Should be 572.8002001257238\n", + "\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.159s\n", + "\n", + "FAILED (failures=52)\n" + ] + } + ], "source": [ "# This will test your function \n", "test_stdev(st_dev)" @@ -319,8 +1068,7 @@ "metadata": {}, "outputs": [], "source": [ - "def pangram(string):\n", - "#your code here" + "def pangram(string):\n" ] }, { @@ -376,7 +1124,14 @@ "outputs": [], "source": [ "def check_pass(password):\n", - "#your code here" + " count=0\n", + " for i in password:\n", + " count+=i\n", + " \n", + " if count > 8:\n", + " print(\"at least 8 characters\")\n", + "\n", + " if " ] }, { @@ -392,7 +1147,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "base", "language": "python", "name": "python3" }, @@ -406,12 +1161,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.13" - }, - "vscode": { - "interpreter": { - "hash": "aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49" - } + "version": "3.13.5" } }, "nbformat": 4, diff --git a/mod/__pycache__/testing.cpython-313.pyc b/mod/__pycache__/testing.cpython-313.pyc new file mode 100644 index 0000000000000000000000000000000000000000..918f268a2fb7777903a673f4f7968cadd040b1ee GIT binary patch literal 20215 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 R-V9mmA$6w6!dj`2{6EC|ml*&6 literal 0 HcmV?d00001 From aa0b4f613bfd2843687faab4729b8f380cec7b60 Mon Sep 17 00:00:00 2001 From: hyejeonglee Date: Sun, 12 Oct 2025 22:41:06 +0200 Subject: [PATCH 2/2] updated with nr.10/11/12 --- main.ipynb | 610 +++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 520 insertions(+), 90 deletions(-) diff --git a/main.ipynb b/main.ipynb index 3dfc637..e440f9a 100644 --- a/main.ipynb +++ b/main.ipynb @@ -20,7 +20,7 @@ }, { "cell_type": "code", - "execution_count": 54, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -512,7 +512,7 @@ }, { "cell_type": "code", - "execution_count": 56, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -560,39 +560,21 @@ }, { "cell_type": "code", - "execution_count": 57, + "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "FF.FF.F" + "..FF.F" ] }, { "name": "stderr", "output_type": "stream", "text": [ - "FF.F.FFF...FF.FF..F.FFFF...F...F.FF.F...FF....F.FFF....F..FF.F..FF..FFF...FFFFFF..F.F.F...FFF\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", - " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 490.5109549373798 != 497.46890466752905 within 5 delta (6.9579497301492665 difference) : Should be 497.46890466752905\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", - " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", - " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 585.2866234492408 != 594.3613758276673 within 5 delta (9.074752378426524 difference) : Should be 594.3613758276673\n", - "\n", + "FFF...F.F.FFF....F...FFFFFF.F.....F.F.F.FFF.F.F..F.F...F..F..F..FFF..F...F.FFF.F.F..FF.FFFFFF.\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", "----------------------------------------------------------------------\n", @@ -600,7 +582,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 629.552168437721 != 635.4635860946488 within 5 delta (5.911417656927824 difference) : Should be 635.4635860946488\n", + "AssertionError: 579.626193931363 != 587.8482527438252 within 5 delta (8.222058812462251 difference) : Should be 587.8482527438252\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -609,7 +591,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 610.9220572217047 != 616.0776090225834 within 5 delta (5.155551800878698 difference) : Should be 616.0776090225834\n", + "AssertionError: 552.2105129543297 != 560.0436774350021 within 5 delta (7.833164480672394 difference) : Should be 560.0436774350021\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -618,7 +600,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 559.5940060396081 != 566.2166508334625 within 5 delta (6.62264479385442 difference) : Should be 566.2166508334625\n", + "AssertionError: 537.1045210468122 != 549.7440037844613 within 5 delta (12.639482737649018 difference) : Should be 549.7440037844613\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -627,7 +609,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 627.3873728053152 != 649.4076275088449 within 5 delta (22.02025470352976 difference) : Should be 649.4076275088449\n", + "AssertionError: 616.8028411883 != 628.1212685798245 within 5 delta (11.318427391524438 difference) : Should be 628.1212685798245\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -636,7 +618,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 600.48181934148 != 607.5883604261687 within 5 delta (7.106541084688729 difference) : Should be 607.5883604261687\n", + "AssertionError: 597.0119920411607 != 606.268543921326 within 5 delta (9.256551880165262 difference) : Should be 606.268543921326\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -645,7 +627,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 576.3424594168995 != 582.0773515068722 within 5 delta (5.734892089972732 difference) : Should be 582.0773515068722\n", + "AssertionError: 560.9653152361197 != 569.1550231142078 within 5 delta (8.18970787808803 difference) : Should be 569.1550231142078\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -654,7 +636,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 489.71919845288215 != 498.0910732400043 within 5 delta (8.371874787122124 difference) : Should be 498.0910732400043\n", + "AssertionError: 567.8965192702686 != 577.9485654753158 within 5 delta (10.05204620504719 difference) : Should be 577.9485654753158\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -663,7 +645,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 582.1308971164054 != 592.8130889796619 within 5 delta (10.682191863256435 difference) : Should be 592.8130889796619\n", + "AssertionError: 613.4715017396587 != 628.621227464558 within 5 delta (15.149725724899326 difference) : Should be 628.621227464558\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -672,7 +654,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 460.6858659955043 != 474.8641214321518 within 5 delta (14.178255436647532 difference) : Should be 474.8641214321518\n", + "AssertionError: 500.6636151704611 != 522.9260913070766 within 5 delta (22.262476136615476 difference) : Should be 522.9260913070766\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -681,7 +663,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 613.4719864153077 != 630.282550581286 within 5 delta (16.81056416597835 difference) : Should be 630.282550581286\n", + "AssertionError: 528.4331391592775 != 535.9290190800117 within 5 delta (7.495879920734183 difference) : Should be 535.9290190800117\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -690,7 +672,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 577.0270311143822 != 585.7046162567411 within 5 delta (8.677585142358907 difference) : Should be 585.7046162567411\n", + "AssertionError: 624.8950823091343 != 638.9394219957297 within 5 delta (14.044339686595436 difference) : Should be 638.9394219957297\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -699,7 +681,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 447.4792493193719 != 464.3711628892097 within 5 delta (16.89191356983781 difference) : Should be 464.3711628892097\n", + "AssertionError: 566.0461681372024 != 593.6742296151072 within 5 delta (27.628061477904794 difference) : Should be 593.6742296151072\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -708,7 +690,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 568.1307065113824 != 573.2722656682561 within 5 delta (5.1415591568736545 difference) : Should be 573.2722656682561\n", + "AssertionError: 536.5392677171626 != 541.5773056428984 within 5 delta (5.038037925735807 difference) : Should be 541.5773056428984\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -717,7 +699,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 592.1341026790768 != 602.2567864139094 within 5 delta (10.122683734832549 difference) : Should be 602.2567864139094\n", + "AssertionError: 606.8204138362828 != 616.5301569881285 within 5 delta (9.709743151845714 difference) : Should be 616.5301569881285\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -726,7 +708,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 510.78779357775096 != 516.9793868338948 within 5 delta (6.19159325614379 difference) : Should be 516.9793868338948\n", + "AssertionError: 609.3534602960418 != 615.0752145605743 within 5 delta (5.721754264532478 difference) : Should be 615.0752145605743\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -735,7 +717,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 522.6994581971868 != 530.8038090595444 within 5 delta (8.104350862357592 difference) : Should be 530.8038090595444\n", + "AssertionError: 556.5202084517947 != 563.4337680469727 within 5 delta (6.913559595177958 difference) : Should be 563.4337680469727\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -744,7 +726,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 611.8988342310626 != 622.3594011003056 within 5 delta (10.460566869243053 difference) : Should be 622.3594011003056\n", + "AssertionError: 597.1297694806381 != 609.4430189388778 within 5 delta (12.313249458239738 difference) : Should be 609.4430189388778\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -753,7 +735,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 518.046422305246 != 527.5526541588554 within 5 delta (9.506231853609393 difference) : Should be 527.5526541588554\n", + "AssertionError: 658.1343771589792 != 668.665195859053 within 5 delta (10.530818700073837 difference) : Should be 668.665195859053\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -762,7 +744,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 539.4933572915688 != 547.1461275752895 within 5 delta (7.652770283720656 difference) : Should be 547.1461275752895\n", + "AssertionError: 574.0351653807892 != 580.1097807422022 within 5 delta (6.074615361413066 difference) : Should be 580.1097807422022\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -771,7 +753,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 603.2579239185434 != 608.5266521097401 within 5 delta (5.268728191196715 difference) : Should be 608.5266521097401\n", + "AssertionError: 522.8846436755587 != 533.2398002919368 within 5 delta (10.355156616378167 difference) : Should be 533.2398002919368\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -780,7 +762,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 541.1311106309944 != 557.7851816098465 within 5 delta (16.654070978852133 difference) : Should be 557.7851816098465\n", + "AssertionError: 512.8287123800842 != 521.3057943115497 within 5 delta (8.477081931465477 difference) : Should be 521.3057943115497\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -789,7 +771,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 533.157683575465 != 542.2721503613027 within 5 delta (9.114466785837749 difference) : Should be 542.2721503613027\n", + "AssertionError: 638.3270664690494 != 650.9684335960243 within 5 delta (12.641367126974842 difference) : Should be 650.9684335960243\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -798,7 +780,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 545.5334922767958 != 552.3105656925366 within 5 delta (6.7770734157408015 difference) : Should be 552.3105656925366\n", + "AssertionError: 584.4407394177416 != 591.5251282506233 within 5 delta (7.0843888328817 difference) : Should be 591.5251282506233\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -807,7 +789,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 623.8694980421768 != 629.8396771146802 within 5 delta (5.970179072503356 difference) : Should be 629.8396771146802\n", + "AssertionError: 543.1104342229255 != 549.1118366769596 within 5 delta (6.001402454034064 difference) : Should be 549.1118366769596\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -816,7 +798,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 669.1303255258016 != 675.1859270148934 within 5 delta (6.055601489091828 difference) : Should be 675.1859270148934\n", + "AssertionError: 489.59292483648903 != 497.6859181434407 within 5 delta (8.092993306951655 difference) : Should be 497.6859181434407\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -825,7 +807,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 561.7556037254072 != 569.0991259127973 within 5 delta (7.343522187390022 difference) : Should be 569.0991259127973\n", + "AssertionError: 599.9490357491909 != 607.7918396769306 within 5 delta (7.8428039277397374 difference) : Should be 607.7918396769306\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -834,7 +816,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 638.3848321173922 != 650.0992923754724 within 5 delta (11.71446025808018 difference) : Should be 650.0992923754724\n", + "AssertionError: 401.0763181961152 != 417.4534673899565 within 5 delta (16.377149193841262 difference) : Should be 417.4534673899565\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -843,7 +825,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 614.8077640184971 != 620.9254048848159 within 5 delta (6.117640866318766 difference) : Should be 620.9254048848159\n", + "AssertionError: 555.5744502073356 != 563.9294220451069 within 5 delta (8.354971837771245 difference) : Should be 563.9294220451069\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -852,7 +834,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 552.0612007159509 != 560.8947408224275 within 5 delta (8.833540106476562 difference) : Should be 560.8947408224275\n", + "AssertionError: 544.3069188553511 != 551.8149551659004 within 5 delta (7.508036310549301 difference) : Should be 551.8149551659004\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -861,7 +843,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 599.463500084771 != 604.9886261000596 within 5 delta (5.525126015288606 difference) : Should be 604.9886261000596\n", + "AssertionError: 489.7690552699302 != 502.4924482281458 within 5 delta (12.723392958215584 difference) : Should be 502.4924482281458\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -870,7 +852,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 623.3762518134939 != 630.7537423586532 within 5 delta (7.377490545159276 difference) : Should be 630.7537423586532\n", + "AssertionError: 554.2848306325799 != 575.2085527188196 within 5 delta (20.923722086239763 difference) : Should be 575.2085527188196\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -879,7 +861,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 621.7326238637953 != 635.7058881940492 within 5 delta (13.973264330253869 difference) : Should be 635.7058881940492\n", + "AssertionError: 573.1202594577978 != 579.9029838286552 within 5 delta (6.782724370857409 difference) : Should be 579.9029838286552\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -888,7 +870,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 559.4385924884267 != 565.7601331684907 within 5 delta (6.321540680064004 difference) : Should be 565.7601331684907\n", + "AssertionError: 612.0418064474895 != 629.7858231228581 within 5 delta (17.744016675368584 difference) : Should be 629.7858231228581\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -897,7 +879,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 578.4519354117785 != 583.6869012589701 within 5 delta (5.2349658471915745 difference) : Should be 583.6869012589701\n", + "AssertionError: 543.1236011696036 != 548.7519753423917 within 5 delta (5.628374172788085 difference) : Should be 548.7519753423917\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -906,7 +888,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 518.6432036836815 != 524.6392780692495 within 5 delta (5.996074385568022 difference) : Should be 524.6392780692495\n", + "AssertionError: 540.5743516202277 != 545.6502784889735 within 5 delta (5.075926868745796 difference) : Should be 545.6502784889735\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -915,7 +897,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 585.5877872095059 != 590.9850237666758 within 5 delta (5.39723655716989 difference) : Should be 590.9850237666758\n", + "AssertionError: 561.6467113367509 != 567.8529407503677 within 5 delta (6.206229413616825 difference) : Should be 567.8529407503677\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -924,7 +906,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 566.1497212974742 != 581.663544957189 within 5 delta (15.513823659714717 difference) : Should be 581.663544957189\n", + "AssertionError: 566.4068390252294 != 571.4416654984734 within 5 delta (5.034826473244038 difference) : Should be 571.4416654984734\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -933,7 +915,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 411.0968134150397 != 421.77643117502055 within 5 delta (10.679617759980829 difference) : Should be 421.77643117502055\n", + "AssertionError: 518.3930589556608 != 525.351666409954 within 5 delta (6.958607454293201 difference) : Should be 525.351666409954\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -942,7 +924,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 441.09999850111757 != 451.480242193287 within 5 delta (10.380243692169415 difference) : Should be 451.480242193287\n", + "AssertionError: 604.3403251932864 != 610.6030865068573 within 5 delta (6.262761313570877 difference) : Should be 610.6030865068573\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -951,7 +933,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 619.9244254019005 != 628.7181188862565 within 5 delta (8.793693484356027 difference) : Should be 628.7181188862565\n", + "AssertionError: 517.2005276509965 != 532.1949523626295 within 5 delta (14.994424711632973 difference) : Should be 532.1949523626295\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -960,7 +942,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 615.2686525355404 != 623.3117213917059 within 5 delta (8.043068856165519 difference) : Should be 623.3117213917059\n", + "AssertionError: 622.5905754919183 != 628.4366246448153 within 5 delta (5.846049152896967 difference) : Should be 628.4366246448153\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -969,7 +951,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 455.98295540656096 != 465.0131974967526 within 5 delta (9.03024209019162 difference) : Should be 465.0131974967526\n", + "AssertionError: 563.9661026355634 != 572.7102845905227 within 5 delta (8.744181954959345 difference) : Should be 572.7102845905227\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -978,7 +960,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 584.1136033983167 != 590.4285285820396 within 5 delta (6.314925183722835 difference) : Should be 590.4285285820396\n", + "AssertionError: 593.1364705877168 != 599.0384713823298 within 5 delta (5.902000794613059 difference) : Should be 599.0384713823298\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -987,7 +969,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 603.0574716382765 != 610.5491560482411 within 5 delta (7.491684409964591 difference) : Should be 610.5491560482411\n", + "AssertionError: 583.6243320573496 != 594.3339286824106 within 5 delta (10.709596625060954 difference) : Should be 594.3339286824106\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -996,7 +978,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 471.1496607602166 != 476.8607742575936 within 5 delta (5.711113497377028 difference) : Should be 476.8607742575936\n", + "AssertionError: 623.6296746374688 != 631.1890982109469 within 5 delta (7.559423573478057 difference) : Should be 631.1890982109469\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -1005,7 +987,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 529.4253382212415 != 535.6909449326496 within 5 delta (6.265606711408054 difference) : Should be 535.6909449326496\n", + "AssertionError: 586.849613730641 != 598.0287061114486 within 5 delta (11.179092380807674 difference) : Should be 598.0287061114486\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -1014,7 +996,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 576.0363979435933 != 581.4453090784516 within 5 delta (5.408911134858272 difference) : Should be 581.4453090784516\n", + "AssertionError: 441.0331922247927 != 451.9245406881446 within 5 delta (10.891348463351903 difference) : Should be 451.9245406881446\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -1023,7 +1005,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 627.4285246942475 != 640.3665564867256 within 5 delta (12.938031792478114 difference) : Should be 640.3665564867256\n", + "AssertionError: 597.2448780264458 != 607.1173630140372 within 5 delta (9.872484987591406 difference) : Should be 607.1173630140372\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -1032,7 +1014,7 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 506.38056543584844 != 515.3437491645316 within 5 delta (8.963183728683134 difference) : Should be 515.3437491645316\n", + "AssertionError: 544.2702300634616 != 555.9763054069058 within 5 delta (11.70607534344424 difference) : Should be 555.9763054069058\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -1041,12 +1023,12 @@ " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 142, in runTest\n", " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", " ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", - "AssertionError: 559.6306190265736 != 572.8002001257238 within 5 delta (13.16958109915015 difference) : Should be 572.8002001257238\n", + "AssertionError: 581.268672942752 != 587.9887652455345 within 5 delta (6.720092302782518 difference) : Should be 587.9887652455345\n", "\n", "----------------------------------------------------------------------\n", - "Ran 100 tests in 0.159s\n", + "Ran 100 tests in 0.133s\n", "\n", - "FAILED (failures=52)\n" + "FAILED (failures=50)\n" ] } ], @@ -1064,18 +1046,365 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 11, "metadata": {}, "outputs": [], "source": [ - "def pangram(string):\n" + "def pangram(string):\n", + " \n", + " lowerstring=string.lower()\n", + "\n", + " alphabet = []\n", + " code=ord('a')\n", + "\n", + " while code <= ord('z'):\n", + " alphabet += [chr(code)]\n", + " code += 1\n", + "\n", + " find = []\n", + "\n", + " for ch in lowerstring:\n", + " if ord(ch) >= ord('a') and ord(ch) <= ord('z'):\n", + " count = 0 \n", + " for a in find:\n", + " if a == ch:\n", + " count = 1\n", + " if count == 0:\n", + " find += [ch]\n", + "\n", + " length = 0\n", + " for i in find:\n", + " length += 1\n", + "\n", + " if length == 26:\n", + " print(f\"{string} is a pangram\")\n", + " else:\n", + " print(f\"{string} is not a pangram\")" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 12, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != False : Should be False\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != False : Should be False\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != False : Should be False\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != False : Should be False\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != False : Should be False\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != False : Should be False\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != False : Should be False\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != False : Should be False\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != False : Should be False\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != False : Should be False\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != True : Should be True\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != False : Should be False\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_pangram..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\SAMSUNG\\Ironhack\\Day3\\lab-functions-en\\mod\\testing.py\", line 172, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n", + "AssertionError: None != False : Should be False\n", + "\n", + "----------------------------------------------------------------------\n", + "Ran 30 tests in 0.054s\n", + "\n", + "FAILED (failures=30)\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Waltz, nymph, for quick jigs vex Bud. is a pangram\n", + "Sphinx of black quartz, judge my vow. is a pangram\n", + "Pack my box with five dozen liquor jugs. is a pangram\n", + "Glib jocks quiz nymph to vex dwarf. is a pangram\n", + "Jackdaws love my big sphinx of quartz. is a pangram\n", + "The five boxing wizards jump quickly. is a pangram\n", + "How vexingly quick daft zebras jump! is a pangram\n", + "Quick zephyrs blow, vexing daft Jim. is a pangram\n", + "Two driven jocks help fax my big quiz. is a pangram\n", + "The jay, pig, fox, zebra and my wolves quack! is a pangram\n", + "Sympathizing would fix Quaker objectives. is a pangram\n", + "A wizard's job is to vex chumps quickly in fog. is a pangram\n", + "Watch 'Jeopardy!', Alex Trebek's fun TV quiz game. is a pangram\n", + "By Jove, my quick study of lexicography won a prize! is a pangram\n", + "Waxy and quivering, jocks fumble the pizza. is a pangram\n", + "ictkyinjquvmbpybyukafxjbanpnbtmckjgnibaafqhrvsnnoxiuitiszlxrmoqtavuidwogdrlevsdxse is a pangram\n", + "gegdgbundfneghradrkzifrcwouvynlekuktmyqqestznw is not a pangram\n", + "mjmowdytizeuvuuslnorsxzzkdtonaazyydgaufwbyxezqublzpqgogdmbolqvabjssshfm is not a pangram\n", + "lqkxolydtjclqhceubiaosmyghdo is not a pangram\n", + "feixmsaltpbgmjsdglsbwnaefusubcxmshpnddmq is not a pangram\n", + "efoqxfrvfsiiqbigczpqnrdppevtzoangvmzxf is not a pangram\n", + "nuuzsxliqwrkcghapqjqhdfbnxianjlryviyijzlqfwholzjuml is not a pangram\n", + "qxufhadyoxlkwlgjrbzdgrfedgpfbwecg is not a pangram\n", + "wqsgyrzlutpmfktbldhzouscgezcpfikqqswzelzmbwpghucq is not a pangram\n", + "zzurasodlleodcftygtupatzysytaaocwbvpdkqrlmuxdirogjmwhwriwkwbbevpxdvnfhqdrmneqhiwbiqwlfeedfczph is a pangram\n", + "ytqnzkgcxwhidalwpxbjpnbzww is not a pangram\n", + "ftkzzkapwnlkoojebmolcvmjfevysucdxz is not a pangram\n", + "bdvvciimemqhptbiblsohilshfouzmuvxghrxaukemblyljaphjrgxjwqofyezqtawtijskxxlnyhjr is a pangram\n", + "pmmdyfkewnfonmohvlpliwoptwehubsywlsgaeqrrn is not a pangram\n", + "dkkrmfwaxymoxooxpcupnygasphltzcjtdgjiiwuzscxpaheebxzmorecgc is not a pangram\n" + ] + } + ], "source": [ "# This will test your function \n", "test_pangram(pangram)" @@ -1092,19 +1421,60 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "def sort_alpha(string):\n", - "#your code here" + " listofwords = []\n", + " word = \"\"\n", + " for ch in string:\n", + " if ch == \",\":\n", + " listofwords.append(word.strip())\n", + " word = \"\"\n", + " else:\n", + " word += ch\n", + "\n", + " if word:\n", + " listofwords.append(word.strip())\n", + "\n", + " sortedlist=sorted(listofwords)\n", + "\n", + " \n", + "\n", + " count = 0\n", + " for i in sortedlist:\n", + " count += 1\n", + "\n", + "\n", + " result = \"\"\n", + " index = 0 \n", + " for woo in sortedlist:\n", + " result += woo\n", + " if index != count-1:\n", + " result+=\",\"\n", + " index += 1\n", + "\n", + " return result\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.096s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_alpha(sort_alpha)" @@ -1119,26 +1489,86 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "def check_pass(password):\n", + " #at least 8 characters\n", + " \n", + " numofchar=False\n", " count=0\n", " for i in password:\n", - " count+=i\n", + " count+=1\n", + " \n", + " if count >= 8:\n", + " numofchar=True\n", + " else:\n", + " numofchar=False\n", + "\n", + " #at least one lower case\n", + " haslower=False\n", + "\n", + " for l in password:\n", + " if ord('a') <= ord(l) <= ord('z'):\n", + " haslower=True\n", + " break\n", + "\n", " \n", - " if count > 8:\n", - " print(\"at least 8 characters\")\n", + " #at least one upper case\n", + " hasupper=False\n", + "\n", + " for u in password:\n", + " if ord('A') <= ord(u) <= ord('Z'):\n", + " hasupper =True\n", + " break\n", + "\n", + "\n", + " #at least one number\n", + " hasnumber =False\n", + "\n", + " for n in password:\n", + " if ord('0') <= ord(n) <= ord('9'):\n", + " hasnumber=True\n", + " break\n", "\n", - " if " + " hasspecial=False\n", + " special_chars = \"!@#$%^&*()-_=+[]{}|;:'\\\",.<>?/`~\"\n", + "\n", + " for s in password:\n", + "\n", + " for char in special_chars:\n", + " if s == char:\n", + " hasspecial=True\n", + " break\n", + "\n", + " if hasspecial:\n", + " break\n", + "\n", + " #check if the password is strong or not\n", + " if numofchar ==True and haslower == True and hasupper == True and hasnumber ==True and hasspecial ==True:\n", + " return True\n", + " else:\n", + " return False \n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 8, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.101s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_pass(check_pass)"