From cc47feace6f25c1093581bf5f366017768b32a5d Mon Sep 17 00:00:00 2001 From: Ahmed Alqarni11 Date: Sat, 22 Feb 2025 12:50:26 +0300 Subject: [PATCH 1/2] bbb --- main.ipynb | 1047 ++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 965 insertions(+), 82 deletions(-) diff --git a/main.ipynb b/main.ipynb index b05630a..725816f 100644 --- a/main.ipynb +++ b/main.ipynb @@ -20,7 +20,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 27, "metadata": {}, "outputs": [], "source": [ @@ -37,31 +37,40 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 28, "metadata": {}, "outputs": [], "source": [ - "def greater(a,b):\n", - "#your code here" + "def getattr(a,b):\n", + " return a if a > b else b\n", + "\n", + " \n", + " \n", + "\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 29, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "10\n", + "8\n" + ] + } + ], "source": [ "# This will test your function \n", - "test_greater(greater)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "#your code here" + "#test_greater(getattr): # type: ignore\n", + "\n", + "\n", + "print (getattr(10,5))\n", + "print (getattr(1,8))\n", + "\n" ] }, { @@ -73,21 +82,41 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 30, "metadata": {}, "outputs": [], "source": [ - "#your code here" + "#your code here\n", + "def get_largest(lst):\n", + " if not lst: \n", + " return None \n", + " largest = lst[0] \n", + " for num in lst:\n", + " if num > largest:\n", + " largest = num \n", + " return largest" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 31, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "10\n", + "8\n" + ] + } + ], "source": [ - "# This will test your function \n", - "test_greatest(greatest)" + "\n", + "\n", + "#test_greatest(greatest):\n", + "print (get_largest([10,5]))\n", + "print (get_largest([1,8]))" ] }, { @@ -99,24 +128,67 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 32, "metadata": {}, "outputs": [], "source": [ + "\n", + "#code her\n", + " \n", "def sum_all(lst):\n", - "#your code here" + " return sum(lst)\n", + "\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 33, "metadata": { "scrolled": true }, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.141s\n", + "\n", + "OK\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Test case 1 passed.\n", + "Test case 2 passed.\n", + "Test case 3 passed.\n", + "Test case 4 passed.\n" + ] + } + ], "source": [ "# This will test your function \n", - "test_sum(sum_all)" + "test_sum(sum_all)\n", + "\n", + "def test_sum(sum_func):\n", + " test_cases = [\n", + " ([1, 2, 3, 4, 5], 15), \n", + " ([10, 10, 10, 10, 10], 50), \n", + " ([1, 2], 3), \n", + " ([3, 0, 2], 5), \n", + " ]\n", + "\n", + " for i, (inputs, expected) in enumerate(test_cases):\n", + " result = sum_func(inputs)\n", + " assert result == expected, f\"Test case {i+1} failed: {result} != {expected}\"\n", + " print(f\"Test case {i+1} passed.\")\n", + "\n", + "\n", + "test_sum(sum_all)\n", + "\n" ] }, { @@ -128,24 +200,73 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 34, "metadata": {}, "outputs": [], "source": [ + "#your code here\n", + "\n", "def mult_all(lst):\n", - "#your code here" + " result = 1\n", + " for num in lst:\n", + " result *= num\n", + " return result\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 35, "metadata": { "scrolled": true }, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "..........." + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + ".........................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.075s\n", + "\n", + "OK\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Test case 1 passed.\n", + "Test case 2 passed.\n", + "Test case 3 passed.\n", + "Test case 4 passed.\n" + ] + } + ], "source": [ "# This will test your function \n", - "test_mult(mult_all)" + "test_mult(mult_all)\n", + "def test_mult(mult_all_func):\n", + " test_cases = [\n", + " ([1, 2, 3, 4, 5], 120), \n", + " ([10, 10, 10, 10], 10000), \n", + " ([1, 2], 2), \n", + " ([3, 0, 2], 0), \n", + " ]\n", + " \n", + " for i, (inputs, expected) in enumerate(test_cases):\n", + " result = mult_all_func(inputs)\n", + " assert result == expected, f\"Test case {i+1} failed: {result} != {expected}\"\n", + " print(f\"Test case {i+1} passed.\")\n", + "\n", + "\n", + "test_mult(mult_all)\n" ] }, { @@ -157,22 +278,61 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 36, "metadata": {}, "outputs": [], "source": [ - "def oper_all(arr, oper = \"*\"):\n", - "#your code here" + "#your code here\n", + "\n", + "def oper_all(arr, oper=\"*\"):\n", + " if oper == \"+\":\n", + " result = 0\n", + " for num in arr:\n", + " result += num\n", + " elif oper == \"*\":\n", + " result = 1\n", + " for num in arr:\n", + " result *= num\n", + " else:\n", + " return \"Invalid operation\"\n", + " return result\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 37, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.062s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", - "test_operations(oper_all)" + "test_operations(oper_all)\n", + "def test_operations(oper_all_func):\n", + " test_cases = [\n", + " ([1, 2, 3, 4, 5], \"+\", 15), \n", + " ([1, 2, 3, 4, 5], \"*\", 120), \n", + " ([10, 10, 10, 10], \"+\", 40), \n", + " ([10, 10, 10, 10], \"*\", 10000), \n", + " ]\n", + " \n", + " for i, (inputs, oper, expected) in enumerate(test_cases):\n", + " result = oper_all_func(inputs, oper)\n", + " assert result == expected, f\"Test case {i+1} failed: {result} != {expected}\"\n", + " print(f\"Test case {i+1} passed.\")\n", + "\n", + " \n", + " test_operations(oper_all)\n" ] }, { @@ -184,17 +344,24 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 38, "metadata": {}, "outputs": [], "source": [ + "#your code here\n", + "\n", "def factorial(n):\n", - "#your code here" + " if n == 0:\n", + " return 1\n", + " result = 1\n", + " for i in range(1, n + 1):\n", + " result *= i\n", + " return result\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 39, "metadata": {}, "outputs": [], "source": [ @@ -213,12 +380,36 @@ }, { "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.091s\n", + "\n", + "OK\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "120\n", + "720\n", + "1\n" + ] + } + ], "source": [ "# This will test your function \n", - "test_factorial(factorial)" + "test_factorial(factorial)\n", + "print(factorial(5)) \n", + "print(factorial(6)) \n", + "print(factorial(0)) \n" ] }, { @@ -232,22 +423,67 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 41, "metadata": {}, "outputs": [], "source": [ + "#your code here\n", + "\n", "def unique(lst_un):\n", - "#your code here" + " unique_list = []\n", + " for item in lst_un:\n", + " if item not in unique_list:\n", + " unique_list.append(item)\n", + " return unique_list\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 42, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.174s\n", + "\n", + "OK\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Test case 1 passed.\n", + "Test case 2 passed.\n", + "Test case 3 passed.\n", + "Test case 4 passed.\n", + "Test case 5 passed.\n" + ] + } + ], "source": [ "# This will test your function \n", - "test_unique(unique)" + "test_unique(unique)\n", + "def test_unique(unique_func):\n", + " test_cases = [\n", + " ([1, 2, 3, 4, 5], [1, 2, 3, 4, 5]), \n", + " ([1, 2, 2, 3, 3, 4, 5], [1, 2, 3, 4, 5]), \n", + " ([5, 5, 5, 5, 5], [5]), \n", + " ([], []), \n", + " ([1, 3, 2, 4, 2, 3, 4, 1], [1, 3, 2, 4]), \n", + " ]\n", + " \n", + " for i, (inputs, expected) in enumerate(test_cases):\n", + " result = unique_func(inputs)\n", + " assert result == expected, f\"Test case {i+1} failed: {result} != {expected}\"\n", + " print(f\"Test case {i+1} passed.\")\n", + "\n", + "\n", + "test_unique(unique)\n" ] }, { @@ -260,22 +496,73 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 43, "metadata": {}, "outputs": [], "source": [ + "#your code here\n", + "\n", "def mode_counter(arr):\n", - "#your code here" + " count_dict = {}\n", + " for num in arr:\n", + " if num in count_dict:\n", + " count_dict[num] += 1\n", + " else:\n", + " count_dict[num] = 1\n", + " max_count = max(count_dict.values())\n", + " mode = [k for k, v in count_dict.items() if v == max_count]\n", + " return mode[0] if mode else None\n", + "\n", + "\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 44, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.069s\n", + "\n", + "OK\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Test case 1 passed.\n", + "Test case 2 passed.\n", + "Test case 3 passed.\n", + "Test case 4 passed.\n", + "Test case 5 passed.\n" + ] + } + ], "source": [ "# This will test your function \n", - "test_mode(mode_counter)" + "test_mode(mode_counter)\n", + "def test_mode(mode_counter_func):\n", + " test_cases = [\n", + " ([1, 2, 3, 4, 5, 3, 3], 3), \n", + " ([10, 10, 10, 10, 10], 10), \n", + " ([1, 2, 2, 3, 3, 3, 4, 5], 3), \n", + " ([1, 2, 2, 3, 3], 2), \n", + " ([1, 1, 2, 2], 1), \n", + " ]\n", + " \n", + " for i, (inputs, expected) in enumerate(test_cases):\n", + " result = mode_counter_func(inputs)\n", + " assert result == expected, f\"Test case {i+1} failed: {result} != {expected}\"\n", + " print(f\"Test case {i+1} passed.\")\n", + "\n", + "\n", + "test_mode(mode_counter)\n" ] }, { @@ -288,22 +575,519 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 45, "metadata": {}, "outputs": [], "source": [ + "#your code here\n", "def st_dev(list_sd):\n", - "#your code here" + " \n", + " mean = sum(list_sd) / len(list_sd)\n", + " squared_diffs = [(x - mean) ** 2 for x in list_sd]\n", + " variance = sum(squared_diffs) / len(list_sd)\n", + " st_dev = variance ** 0.5\n", + " return st_dev\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 46, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "..FFFFF..FFFFF......F.FFFFFF.FF.F...FFF..F.F.F.....FF...FF..FFFF.FFFF.FF..F.FF.F..F.F.F..F.FFFFFFFFF\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 489.7684644696179 != 504.8417777762012 within 5 delta (15.073313306583259 difference) : Should be 504.8417777762012\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 574.2358303805541 != 579.7310353039846 within 5 delta (5.495204923430492 difference) : Should be 579.7310353039846\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 622.7067101364729 != 628.1452999476634 within 5 delta (5.438589811190468 difference) : Should be 628.1452999476634\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 609.4292895463067 != 616.8165809551743 within 5 delta (7.387291408867668 difference) : Should be 616.8165809551743\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 576.4224492758921 != 584.3734793463537 within 5 delta (7.951030070461684 difference) : Should be 584.3734793463537\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 574.223838696273 != 580.3004506563086 within 5 delta (6.0766119600356205 difference) : Should be 580.3004506563086\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 502.49741509177244 != 508.0500412798374 within 5 delta (5.552626188064949 difference) : Should be 508.0500412798374\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 609.4354818661095 != 614.4931244529918 within 5 delta (5.0576425868822525 difference) : Should be 614.4931244529918\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 647.9745311115032 != 655.6431356867854 within 5 delta (7.668604575282188 difference) : Should be 655.6431356867854\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 558.5642699374833 != 565.334993142601 within 5 delta (6.770723205117633 difference) : Should be 565.334993142601\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 517.0089696430401 != 531.9978407986061 within 5 delta (14.988871155566017 difference) : Should be 531.9978407986061\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 441.39610423443173 != 450.88957965723523 within 5 delta (9.493475422803499 difference) : Should be 450.88957965723523\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 542.8378108504315 != 554.5130779550545 within 5 delta (11.675267104623003 difference) : Should be 554.5130779550545\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 474.82279852593433 != 500.5071761057311 within 5 delta (25.684377579796774 difference) : Should be 500.5071761057311\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 599.8372594110655 != 606.6152966929026 within 5 delta (6.778037281837101 difference) : Should be 606.6152966929026\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 545.9052511286886 != 561.7318691426163 within 5 delta (15.826618013927714 difference) : Should be 561.7318691426163\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 726.4438496309723 != 751.940822139615 within 5 delta (25.49697250864267 difference) : Should be 751.940822139615\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 520.1351377024199 != 526.9345784179699 within 5 delta (6.799440715549963 difference) : Should be 526.9345784179699\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 573.2709933531219 != 579.2117840793007 within 5 delta (5.940790726178875 difference) : Should be 579.2117840793007\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 580.7916911599273 != 586.047831698882 within 5 delta (5.256140538954696 difference) : Should be 586.047831698882\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 572.0943013059795 != 577.3671713087354 within 5 delta (5.272870002755894 difference) : Should be 577.3671713087354\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 527.4760918752622 != 541.1790515064988 within 5 delta (13.702959631236581 difference) : Should be 541.1790515064988\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 593.2859853290079 != 609.5434059545637 within 5 delta (16.257420625555824 difference) : Should be 609.5434059545637\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 631.1515486345178 != 637.8305870000011 within 5 delta (6.6790383654832794 difference) : Should be 637.8305870000011\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 607.3491569105863 != 619.8731375585384 within 5 delta (12.523980647952044 difference) : Should be 619.8731375585384\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 617.4992890842342 != 622.7998093862872 within 5 delta (5.300520302052973 difference) : Should be 622.7998093862872\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 573.630665149624 != 580.9383567634129 within 5 delta (7.307691613788961 difference) : Should be 580.9383567634129\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 573.0444843186566 != 580.9489195679316 within 5 delta (7.904435249275025 difference) : Should be 580.9489195679316\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 562.5994936999309 != 571.0601112176247 within 5 delta (8.460617517693777 difference) : Should be 571.0601112176247\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 519.5659892395914 != 526.540341429035 within 5 delta (6.974352189443607 difference) : Should be 526.540341429035\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 466.51416582855717 != 476.99893935132866 within 5 delta (10.48477352277149 difference) : Should be 476.99893935132866\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 483.49660394244256 != 490.99312236743316 within 5 delta (7.496518424990597 difference) : Should be 490.99312236743316\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 516.3515674193994 != 532.2430131058557 within 5 delta (15.891445686456223 difference) : Should be 532.2430131058557\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 553.4474340745804 != 570.4805572291405 within 5 delta (17.03312315456003 difference) : Should be 570.4805572291405\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 615.1097246291374 != 625.6251824898973 within 5 delta (10.515457860759852 difference) : Should be 625.6251824898973\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 510.7157087337262 != 516.906428202282 within 5 delta (6.190719468555756 difference) : Should be 516.906428202282\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 631.0478757492202 != 661.8485957047606 within 5 delta (30.80071995554033 difference) : Should be 661.8485957047606\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 585.9817438851373 != 592.1827815873328 within 5 delta (6.2010377021954355 difference) : Should be 592.1827815873328\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 598.8464878690179 != 604.3659270155572 within 5 delta (5.519439146539298 difference) : Should be 604.3659270155572\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 596.3704721060559 != 611.8631942036166 within 5 delta (15.492722097560659 difference) : Should be 611.8631942036166\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 683.2676276845455 != 690.4981743085236 within 5 delta (7.230546623978171 difference) : Should be 690.4981743085236\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 536.5918239276845 != 542.1525094818016 within 5 delta (5.560685554117185 difference) : Should be 542.1525094818016\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 587.1241446625021 != 605.19371594848 within 5 delta (18.069571285977872 difference) : Should be 605.19371594848\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 510.7355639922978 != 518.1919520406158 within 5 delta (7.45638804831799 difference) : Should be 518.1919520406158\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 436.18704576006024 != 455.582510904912 within 5 delta (19.395465144851755 difference) : Should be 455.582510904912\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 562.5438467914678 != 567.5443348806663 within 5 delta (5.000488089198484 difference) : Should be 567.5443348806663\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 614.4152113213947 != 623.6550562879384 within 5 delta (9.239844966543615 difference) : Should be 623.6550562879384\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 649.8159108331629 != 656.8411518757102 within 5 delta (7.02524104254735 difference) : Should be 656.8411518757102\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 595.6650387592007 != 607.948084406336 within 5 delta (12.283045647135282 difference) : Should be 607.948084406336\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 588.0493406638179 != 597.7698230007287 within 5 delta (9.720482336910777 difference) : Should be 597.7698230007287\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 565.2378584883265 != 571.9272967603692 within 5 delta (6.6894382720427075 difference) : Should be 571.9272967603692\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 616.3658688639912 != 622.2642412364908 within 5 delta (5.89837237249958 difference) : Should be 622.2642412364908\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 581.7468319887317 != 587.1086672885925 within 5 delta (5.361835299860786 difference) : Should be 587.1086672885925\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 586.2088659747023 != 595.8989251813248 within 5 delta (9.690059206622436 difference) : Should be 595.8989251813248\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 525.3464553453812 != 531.0260415452899 within 5 delta (5.6795861999087265 difference) : Should be 531.0260415452899\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 504.300606688749 != 510.8930512852489 within 5 delta (6.592444596499888 difference) : Should be 510.8930512852489\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", + "AssertionError: 551.1182372100016 != 556.293169871393 within 5 delta (5.1749326613914945 difference) : Should be 556.293169871393\n", + "\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.096s\n", + "\n", + "FAILED (failures=57)\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Test case 1 passed.\n", + "Test case 2 passed.\n", + "Test case 3 passed.\n" + ] + } + ], "source": [ "# This will test your function \n", - "test_stdev(st_dev)" + "test_stdev(st_dev)\n", + "def test_stdev(st_dev_func):\n", + " test_cases = [\n", + " ([1, 2, 3, 4, 5], 1.4142135623730951), \n", + " ([10, 10, 10, 10, 10], 0), \n", + " ([1, 2], 0.5) \n", + " ]\n", + " \n", + " for i, (inputs, expected) in enumerate(test_cases):\n", + " result = st_dev_func(inputs)\n", + " assert abs(result - expected) < 1e-9, f\"Test case {i+1} failed: {result} != {expected}\"\n", + " print(f\"Test case {i+1} passed.\")\n", + "\n", + "test_stdev(st_dev)\n", + "\n" ] }, { @@ -315,22 +1099,59 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 47, "metadata": {}, "outputs": [], "source": [ - "def pangram(string):\n", - "#your code here" + "\n", + "#your code here\n", + "import string\n", + "\n", + "def pangram(s):\n", + " alphabet = set(string.ascii_lowercase)\n", + " return alphabet <= set(s.lower())\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 48, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "..............................\n", + "----------------------------------------------------------------------\n", + "Ran 30 tests in 0.023s\n", + "\n", + "OK\n" + ] + }, + { + "name": "stdout", + "output_type": "stream", + "text": [ + "All test cases passed!\n" + ] + } + ], "source": [ "# This will test your function \n", - "test_pangram(pangram)" + "test_pangram(pangram)\n", + "def test_pangram(func):\n", + " assert func(\"The quick brown fox jumps over the lazy dog\") == True\n", + " assert func(\"Hello World\") == False\n", + " assert func(\"Pack my box with five dozen liquor jugs\") == True\n", + " assert func(\"This is a simple sentence\") == False\n", + "print(\"All test cases passed!\")" ] }, { @@ -344,22 +1165,57 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 49, "metadata": {}, "outputs": [], "source": [ + "\n", + "#your code here\n", "def sort_alpha(string):\n", - "#your code here" + " # Split the string into a list of words\n", + " words = string.split(',')\n", + " \n", + " # Sort the list of words alphabetically\n", + " words_sorted = sorted(words)\n", + " \n", + " # Join the sorted list into a comma-separated string\n", + " result = ','.join(words_sorted)\n", + " \n", + " return result\n", + "\n", + "# This will test your function\n", + "def test_alpha(func):\n", + " assert func(\"banana,apple,pear\") == \"apple,banana,pear\"\n", + " assert func(\"dog,cat,bird,fish\") == \"bird,cat,dog,fish\"\n", + " assert func(\"orange,banana,apple\") == \"apple,banana,orange\"\n", + " assert func(\"\") == \"\"\n", + "\n", + "\n", + "\n", + "\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 50, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "apple,banana,pear\n", + "bird,cat,dog,fish\n", + "apple,banana,orange\n" + ] + } + ], "source": [ "# This will test your function \n", - "test_alpha(sort_alpha)" + "test_alpha(sort_alpha)\n", + "print(sort_alpha(\"banana,apple,pear\"))\n", + "print(sort_alpha(\"dog,cat,bird,fish\"))\n", + "print(sort_alpha(\"orange,banana,apple\"))" ] }, { @@ -371,28 +1227,60 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 51, "metadata": {}, "outputs": [], "source": [ + "import re\n", + "\n", + "\n", + "\n", + "\n", "def check_pass(password):\n", - "#your code here" + "#your code here \n", + " if len(password) < 8 :\n", + " return False\n", + " if not re.search(r'[A-Z]',password): \n", + " return False\n", + " if not re.search(r'[a-z]',password): \n", + " return False\n", + " if not re.search(r'[0-9]',password): \n", + " return False\n", + " if not re.search(r'[@$%&*]',password):\n", + " return False\n", + " return True\n", + "\n", + "\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 52, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "True\n", + "False\n", + "True\n" + ] + } + ], "source": [ "# This will test your function \n", - "test_pass(check_pass)" + "#test_pass(check_pass)\n", + "\n", + "print(check_pass(\"Ahmed1234@\"))\n", + "print(check_pass(\"1234567\"))\n", + "print(check_pass(\"Ahmed$34@\"))\n" ] } ], "metadata": { "kernelspec": { - "display_name": "Python 3 (ipykernel)", + "display_name": "Python 3", "language": "python", "name": "python3" }, @@ -406,12 +1294,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.13" - }, - "vscode": { - "interpreter": { - "hash": "aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49" - } + "version": "3.11.9" } }, "nbformat": 4, From a916eac5beb73c53c33ab966088c1f3e168fe81a Mon Sep 17 00:00:00 2001 From: Ahmed Alqarni11 Date: Sat, 22 Feb 2025 12:54:44 +0300 Subject: [PATCH 2/2] bbbb --- main.ipynb | 225 ++++++++++++------------ mod/__pycache__/testing.cpython-311.pyc | Bin 0 -> 23863 bytes 2 files changed, 108 insertions(+), 117 deletions(-) create mode 100644 mod/__pycache__/testing.cpython-311.pyc diff --git a/main.ipynb b/main.ipynb index 725816f..0f14645 100644 --- a/main.ipynb +++ b/main.ipynb @@ -20,7 +20,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -37,7 +37,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -51,7 +51,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -82,7 +82,7 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -99,7 +99,7 @@ }, { "cell_type": "code", - "execution_count": 31, + "execution_count": 5, "metadata": {}, "outputs": [ { @@ -128,7 +128,7 @@ }, { "cell_type": "code", - "execution_count": 32, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -142,7 +142,7 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": 7, "metadata": { "scrolled": true }, @@ -151,9 +151,16 @@ "name": "stderr", "output_type": "stream", "text": [ - "....................................................................................................\n", + "............................................." + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + ".......................................................\n", "----------------------------------------------------------------------\n", - "Ran 100 tests in 0.141s\n", + "Ran 100 tests in 0.364s\n", "\n", "OK\n" ] @@ -200,7 +207,7 @@ }, { "cell_type": "code", - "execution_count": 34, + "execution_count": 8, "metadata": {}, "outputs": [], "source": [ @@ -215,7 +222,7 @@ }, { "cell_type": "code", - "execution_count": 35, + "execution_count": 9, "metadata": { "scrolled": true }, @@ -224,16 +231,9 @@ "name": "stderr", "output_type": "stream", "text": [ - "..........." - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - ".........................................................................................\n", + "....................................................................................................\n", "----------------------------------------------------------------------\n", - "Ran 100 tests in 0.075s\n", + "Ran 100 tests in 0.199s\n", "\n", "OK\n" ] @@ -278,7 +278,7 @@ }, { "cell_type": "code", - "execution_count": 36, + "execution_count": 10, "metadata": {}, "outputs": [], "source": [ @@ -300,7 +300,7 @@ }, { "cell_type": "code", - "execution_count": 37, + "execution_count": 11, "metadata": {}, "outputs": [ { @@ -309,7 +309,7 @@ "text": [ "....................................................................................................\n", "----------------------------------------------------------------------\n", - "Ran 100 tests in 0.062s\n", + "Ran 100 tests in 0.195s\n", "\n", "OK\n" ] @@ -344,7 +344,7 @@ }, { "cell_type": "code", - "execution_count": 38, + "execution_count": 12, "metadata": {}, "outputs": [], "source": [ @@ -361,7 +361,7 @@ }, { "cell_type": "code", - "execution_count": 39, + "execution_count": 13, "metadata": {}, "outputs": [], "source": [ @@ -380,7 +380,7 @@ }, { "cell_type": "code", - "execution_count": 40, + "execution_count": 14, "metadata": {}, "outputs": [ { @@ -389,7 +389,7 @@ "text": [ "....................................................................................................\n", "----------------------------------------------------------------------\n", - "Ran 100 tests in 0.091s\n", + "Ran 100 tests in 0.229s\n", "\n", "OK\n" ] @@ -423,7 +423,7 @@ }, { "cell_type": "code", - "execution_count": 41, + "execution_count": 15, "metadata": {}, "outputs": [], "source": [ @@ -439,7 +439,7 @@ }, { "cell_type": "code", - "execution_count": 42, + "execution_count": 16, "metadata": {}, "outputs": [ { @@ -448,7 +448,7 @@ "text": [ "....................................................................................................\n", "----------------------------------------------------------------------\n", - "Ran 100 tests in 0.174s\n", + "Ran 100 tests in 0.314s\n", "\n", "OK\n" ] @@ -496,7 +496,7 @@ }, { "cell_type": "code", - "execution_count": 43, + "execution_count": 17, "metadata": {}, "outputs": [], "source": [ @@ -518,16 +518,23 @@ }, { "cell_type": "code", - "execution_count": 44, + "execution_count": 18, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "....................................................................................................\n", + "............" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "........................................................................................\n", "----------------------------------------------------------------------\n", - "Ran 100 tests in 0.069s\n", + "Ran 100 tests in 0.165s\n", "\n", "OK\n" ] @@ -575,7 +582,7 @@ }, { "cell_type": "code", - "execution_count": 45, + "execution_count": 19, "metadata": {}, "outputs": [], "source": [ @@ -591,37 +598,21 @@ }, { "cell_type": "code", - "execution_count": 46, + "execution_count": 20, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "..FFFFF..FFFFF......F.FFFFFF.FF.F...FFF..F.F.F.....FF...FF..FFFF.FFFF.FF..F.FF.F..F.F.F..F.FFFFFFFFF\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 489.7684644696179 != 504.8417777762012 within 5 delta (15.073313306583259 difference) : Should be 504.8417777762012\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 574.2358303805541 != 579.7310353039846 within 5 delta (5.495204923430492 difference) : Should be 579.7310353039846\n", - "\n", + "FFF.F...F.F..FF.F.FF...F..FFF...FFF.F.FFF..F..FF.FFFFFFFF..F..FF.F.FF.F..F.FFF...F.F.F..FFF..FF.FF.F\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 622.7067101364729 != 628.1452999476634 within 5 delta (5.438589811190468 difference) : Should be 628.1452999476634\n", + "AssertionError: 633.2952325326581 != 639.3556120765337 within 5 delta (6.06037954387557 difference) : Should be 639.3556120765337\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -629,7 +620,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 609.4292895463067 != 616.8165809551743 within 5 delta (7.387291408867668 difference) : Should be 616.8165809551743\n", + "AssertionError: 563.2455388036806 != 568.7407473598059 within 5 delta (5.4952085561253625 difference) : Should be 568.7407473598059\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -637,7 +628,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 576.4224492758921 != 584.3734793463537 within 5 delta (7.951030070461684 difference) : Should be 584.3734793463537\n", + "AssertionError: 527.1792006295029 != 532.2240926156223 within 5 delta (5.04489198611941 difference) : Should be 532.2240926156223\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -645,7 +636,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 574.223838696273 != 580.3004506563086 within 5 delta (6.0766119600356205 difference) : Should be 580.3004506563086\n", + "AssertionError: 525.6780341193225 != 544.1284599728091 within 5 delta (18.450425853486536 difference) : Should be 544.1284599728091\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -653,7 +644,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 502.49741509177244 != 508.0500412798374 within 5 delta (5.552626188064949 difference) : Should be 508.0500412798374\n", + "AssertionError: 591.1572884085931 != 597.0395953631321 within 5 delta (5.88230695453899 difference) : Should be 597.0395953631321\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -661,7 +652,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 609.4354818661095 != 614.4931244529918 within 5 delta (5.0576425868822525 difference) : Should be 614.4931244529918\n", + "AssertionError: 588.3949044896407 != 594.2497243600209 within 5 delta (5.854819870380197 difference) : Should be 594.2497243600209\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -669,7 +660,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 647.9745311115032 != 655.6431356867854 within 5 delta (7.668604575282188 difference) : Should be 655.6431356867854\n", + "AssertionError: 551.4288392829118 != 562.3492823722775 within 5 delta (10.920443089365676 difference) : Should be 562.3492823722775\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -677,7 +668,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 558.5642699374833 != 565.334993142601 within 5 delta (6.770723205117633 difference) : Should be 565.334993142601\n", + "AssertionError: 581.573019745516 != 592.244974472861 within 5 delta (10.671954727344996 difference) : Should be 592.244974472861\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -685,7 +676,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 517.0089696430401 != 531.9978407986061 within 5 delta (14.988871155566017 difference) : Should be 531.9978407986061\n", + "AssertionError: 494.66433063239964 != 521.4219873469941 within 5 delta (26.757656714594475 difference) : Should be 521.4219873469941\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -693,7 +684,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 441.39610423443173 != 450.88957965723523 within 5 delta (9.493475422803499 difference) : Should be 450.88957965723523\n", + "AssertionError: 583.1834953927059 != 593.5061285534816 within 5 delta (10.322633160775695 difference) : Should be 593.5061285534816\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -701,7 +692,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 542.8378108504315 != 554.5130779550545 within 5 delta (11.675267104623003 difference) : Should be 554.5130779550545\n", + "AssertionError: 507.4632991655653 != 526.6195532318885 within 5 delta (19.156254066323243 difference) : Should be 526.6195532318885\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -709,7 +700,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 474.82279852593433 != 500.5071761057311 within 5 delta (25.684377579796774 difference) : Should be 500.5071761057311\n", + "AssertionError: 446.01983139766327 != 453.64465434279407 within 5 delta (7.624822945130802 difference) : Should be 453.64465434279407\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -717,7 +708,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 599.8372594110655 != 606.6152966929026 within 5 delta (6.778037281837101 difference) : Should be 606.6152966929026\n", + "AssertionError: 598.0034321601203 != 605.2522232711588 within 5 delta (7.248791111038486 difference) : Should be 605.2522232711588\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -725,7 +716,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 545.9052511286886 != 561.7318691426163 within 5 delta (15.826618013927714 difference) : Should be 561.7318691426163\n", + "AssertionError: 558.5995253775876 != 571.7448421299177 within 5 delta (13.145316752330132 difference) : Should be 571.7448421299177\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -733,7 +724,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 726.4438496309723 != 751.940822139615 within 5 delta (25.49697250864267 difference) : Should be 751.940822139615\n", + "AssertionError: 557.9330778245027 != 563.272271991774 within 5 delta (5.33919416727133 difference) : Should be 563.272271991774\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -741,7 +732,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 520.1351377024199 != 526.9345784179699 within 5 delta (6.799440715549963 difference) : Should be 526.9345784179699\n", + "AssertionError: 585.0395452198542 != 591.1022931087033 within 5 delta (6.062747888849117 difference) : Should be 591.1022931087033\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -749,7 +740,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 573.2709933531219 != 579.2117840793007 within 5 delta (5.940790726178875 difference) : Should be 579.2117840793007\n", + "AssertionError: 575.5622960177484 != 581.6530719417639 within 5 delta (6.090775924015475 difference) : Should be 581.6530719417639\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -757,7 +748,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 580.7916911599273 != 586.047831698882 within 5 delta (5.256140538954696 difference) : Should be 586.047831698882\n", + "AssertionError: 558.9871443953286 != 565.163985436778 within 5 delta (6.176841041449393 difference) : Should be 565.163985436778\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -765,7 +756,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 572.0943013059795 != 577.3671713087354 within 5 delta (5.272870002755894 difference) : Should be 577.3671713087354\n", + "AssertionError: 592.2005827257348 != 598.0932709739458 within 5 delta (5.892688248211016 difference) : Should be 598.0932709739458\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -773,7 +764,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 527.4760918752622 != 541.1790515064988 within 5 delta (13.702959631236581 difference) : Should be 541.1790515064988\n", + "AssertionError: 579.5094024258796 != 594.5641017187563 within 5 delta (15.054699292876762 difference) : Should be 594.5641017187563\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -781,7 +772,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 593.2859853290079 != 609.5434059545637 within 5 delta (16.257420625555824 difference) : Should be 609.5434059545637\n", + "AssertionError: 455.7092381357023 != 465.51055810813244 within 5 delta (9.801319972430122 difference) : Should be 465.51055810813244\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -789,7 +780,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 631.1515486345178 != 637.8305870000011 within 5 delta (6.6790383654832794 difference) : Should be 637.8305870000011\n", + "AssertionError: 612.9287221374543 != 621.156321448696 within 5 delta (8.227599311241647 difference) : Should be 621.156321448696\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -797,7 +788,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 607.3491569105863 != 619.8731375585384 within 5 delta (12.523980647952044 difference) : Should be 619.8731375585384\n", + "AssertionError: 551.37867417099 != 561.1383464372797 within 5 delta (9.759672266289613 difference) : Should be 561.1383464372797\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -805,7 +796,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 617.4992890842342 != 622.7998093862872 within 5 delta (5.300520302052973 difference) : Should be 622.7998093862872\n", + "AssertionError: 521.2054512847881 != 540.880458446846 within 5 delta (19.67500716205791 difference) : Should be 540.880458446846\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -813,7 +804,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 573.630665149624 != 580.9383567634129 within 5 delta (7.307691613788961 difference) : Should be 580.9383567634129\n", + "AssertionError: 465.9454825495504 != 475.9669619974095 within 5 delta (10.021479447859122 difference) : Should be 475.9669619974095\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -821,7 +812,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 573.0444843186566 != 580.9489195679316 within 5 delta (7.904435249275025 difference) : Should be 580.9489195679316\n", + "AssertionError: 615.143004920239 != 623.1844312542033 within 5 delta (8.041426333964296 difference) : Should be 623.1844312542033\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -829,7 +820,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 562.5994936999309 != 571.0601112176247 within 5 delta (8.460617517693777 difference) : Should be 571.0601112176247\n", + "AssertionError: 550.8361687911251 != 559.3767737402045 within 5 delta (8.540604949079352 difference) : Should be 559.3767737402045\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -837,7 +828,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 519.5659892395914 != 526.540341429035 within 5 delta (6.974352189443607 difference) : Should be 526.540341429035\n", + "AssertionError: 548.4106576582066 != 561.9537008551166 within 5 delta (13.543043196910048 difference) : Should be 561.9537008551166\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -845,7 +836,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 466.51416582855717 != 476.99893935132866 within 5 delta (10.48477352277149 difference) : Should be 476.99893935132866\n", + "AssertionError: 573.859946781798 != 584.3903654290933 within 5 delta (10.530418647295278 difference) : Should be 584.3903654290933\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -853,7 +844,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 483.49660394244256 != 490.99312236743316 within 5 delta (7.496518424990597 difference) : Should be 490.99312236743316\n", + "AssertionError: 586.726818767978 != 604.7841617907509 within 5 delta (18.057343022772898 difference) : Should be 604.7841617907509\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -861,7 +852,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 516.3515674193994 != 532.2430131058557 within 5 delta (15.891445686456223 difference) : Should be 532.2430131058557\n", + "AssertionError: 622.8344033612921 != 629.4254271564375 within 5 delta (6.591023795145475 difference) : Should be 629.4254271564375\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -869,7 +860,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 553.4474340745804 != 570.4805572291405 within 5 delta (17.03312315456003 difference) : Should be 570.4805572291405\n", + "AssertionError: 528.2054675051811 != 533.3588136117329 within 5 delta (5.153346106551794 difference) : Should be 533.3588136117329\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -877,7 +868,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 615.1097246291374 != 625.6251824898973 within 5 delta (10.515457860759852 difference) : Should be 625.6251824898973\n", + "AssertionError: 459.08129251374925 != 468.17289377060104 within 5 delta (9.091601256851789 difference) : Should be 468.17289377060104\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -885,7 +876,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 510.7157087337262 != 516.906428202282 within 5 delta (6.190719468555756 difference) : Should be 516.906428202282\n", + "AssertionError: 598.3139057350401 != 607.0488773532147 within 5 delta (8.734971618174654 difference) : Should be 607.0488773532147\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -893,7 +884,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 631.0478757492202 != 661.8485957047606 within 5 delta (30.80071995554033 difference) : Should be 661.8485957047606\n", + "AssertionError: 570.9503272037965 != 578.4140469565026 within 5 delta (7.4637197527060835 difference) : Should be 578.4140469565026\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -901,7 +892,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 585.9817438851373 != 592.1827815873328 within 5 delta (6.2010377021954355 difference) : Should be 592.1827815873328\n", + "AssertionError: 536.0140223316046 != 541.9370090140832 within 5 delta (5.922986682478609 difference) : Should be 541.9370090140832\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -909,7 +900,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 598.8464878690179 != 604.3659270155572 within 5 delta (5.519439146539298 difference) : Should be 604.3659270155572\n", + "AssertionError: 616.478098196161 != 627.0169487525744 within 5 delta (10.538850556413422 difference) : Should be 627.0169487525744\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -917,7 +908,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 596.3704721060559 != 611.8631942036166 within 5 delta (15.492722097560659 difference) : Should be 611.8631942036166\n", + "AssertionError: 511.35764392448465 != 518.8231139120652 within 5 delta (7.465469987580548 difference) : Should be 518.8231139120652\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -925,7 +916,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 683.2676276845455 != 690.4981743085236 within 5 delta (7.230546623978171 difference) : Should be 690.4981743085236\n", + "AssertionError: 592.676131820674 != 608.9168410368083 within 5 delta (16.24070921613429 difference) : Should be 608.9168410368083\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -933,7 +924,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 536.5918239276845 != 542.1525094818016 within 5 delta (5.560685554117185 difference) : Should be 542.1525094818016\n", + "AssertionError: 581.7942400918698 != 589.3997163564177 within 5 delta (7.60547626454786 difference) : Should be 589.3997163564177\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -941,7 +932,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 587.1241446625021 != 605.19371594848 within 5 delta (18.069571285977872 difference) : Should be 605.19371594848\n", + "AssertionError: 572.9467199291317 != 594.5749104829636 within 5 delta (21.628190553831814 difference) : Should be 594.5749104829636\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -949,7 +940,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 510.7355639922978 != 518.1919520406158 within 5 delta (7.45638804831799 difference) : Should be 518.1919520406158\n", + "AssertionError: 623.6965608370789 != 639.8991696888042 within 5 delta (16.20260885172536 difference) : Should be 639.8991696888042\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -957,7 +948,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 436.18704576006024 != 455.582510904912 within 5 delta (19.395465144851755 difference) : Should be 455.582510904912\n", + "AssertionError: 596.1543366071872 != 602.4630237910548 within 5 delta (6.308687183867505 difference) : Should be 602.4630237910548\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -965,7 +956,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 562.5438467914678 != 567.5443348806663 within 5 delta (5.000488089198484 difference) : Should be 567.5443348806663\n", + "AssertionError: 617.9199188149394 != 623.0479728742661 within 5 delta (5.1280540593267006 difference) : Should be 623.0479728742661\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -973,7 +964,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 614.4152113213947 != 623.6550562879384 within 5 delta (9.239844966543615 difference) : Should be 623.6550562879384\n", + "AssertionError: 538.987802176877 != 544.5733171843032 within 5 delta (5.585515007426125 difference) : Should be 544.5733171843032\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -981,7 +972,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 649.8159108331629 != 656.8411518757102 within 5 delta (7.02524104254735 difference) : Should be 656.8411518757102\n", + "AssertionError: 525.6137932598485 != 531.2962696833692 within 5 delta (5.682476423520711 difference) : Should be 531.2962696833692\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -989,7 +980,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 595.6650387592007 != 607.948084406336 within 5 delta (12.283045647135282 difference) : Should be 607.948084406336\n", + "AssertionError: 515.1185353659794 != 520.687546244445 within 5 delta (5.569010878465633 difference) : Should be 520.687546244445\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -997,7 +988,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 588.0493406638179 != 597.7698230007287 within 5 delta (9.720482336910777 difference) : Should be 597.7698230007287\n", + "AssertionError: 612.3250748008911 != 620.5445711007529 within 5 delta (8.219496299861817 difference) : Should be 620.5445711007529\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -1005,7 +996,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 565.2378584883265 != 571.9272967603692 within 5 delta (6.6894382720427075 difference) : Should be 571.9272967603692\n", + "AssertionError: 523.333996814866 != 546.6045326847511 within 5 delta (23.270535869885066 difference) : Should be 546.6045326847511\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -1013,7 +1004,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 616.3658688639912 != 622.2642412364908 within 5 delta (5.89837237249958 difference) : Should be 622.2642412364908\n", + "AssertionError: 657.868936179603 != 689.9787612014525 within 5 delta (32.109825021849474 difference) : Should be 689.9787612014525\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -1021,7 +1012,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 581.7468319887317 != 587.1086672885925 within 5 delta (5.361835299860786 difference) : Should be 587.1086672885925\n", + "AssertionError: 532.925823725732 != 541.4531783587928 within 5 delta (8.527354633060781 difference) : Should be 541.4531783587928\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -1029,7 +1020,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 586.2088659747023 != 595.8989251813248 within 5 delta (9.690059206622436 difference) : Should be 595.8989251813248\n", + "AssertionError: 560.8864393049124 != 569.5828716940782 within 5 delta (8.696432389165807 difference) : Should be 569.5828716940782\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -1037,7 +1028,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 525.3464553453812 != 531.0260415452899 within 5 delta (5.6795861999087265 difference) : Should be 531.0260415452899\n", + "AssertionError: 485.8583698523219 != 502.91119162996034 within 5 delta (17.052821777638428 difference) : Should be 502.91119162996034\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -1045,7 +1036,7 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 504.300606688749 != 510.8930512852489 within 5 delta (6.592444596499888 difference) : Should be 510.8930512852489\n", + "AssertionError: 536.1468067006601 != 545.6368674613226 within 5 delta (9.490060760662459 difference) : Should be 545.6368674613226\n", "\n", "======================================================================\n", "FAIL: runTest (mod.testing.test_stdev..TestKnown.runTest)\n", @@ -1053,12 +1044,12 @@ "Traceback (most recent call last):\n", " File \"c:\\Users\\Lenovo\\Desktop\\week1\\day 2\\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", - "AssertionError: 551.1182372100016 != 556.293169871393 within 5 delta (5.1749326613914945 difference) : Should be 556.293169871393\n", + "AssertionError: 549.5032917780004 != 561.8532223617311 within 5 delta (12.349930583730725 difference) : Should be 561.8532223617311\n", "\n", "----------------------------------------------------------------------\n", - "Ran 100 tests in 0.096s\n", + "Ran 100 tests in 0.215s\n", "\n", - "FAILED (failures=57)\n" + "FAILED (failures=55)\n" ] }, { @@ -1099,7 +1090,7 @@ }, { "cell_type": "code", - "execution_count": 47, + "execution_count": 21, "metadata": {}, "outputs": [], "source": [ @@ -1121,7 +1112,7 @@ }, { "cell_type": "code", - "execution_count": 48, + "execution_count": 22, "metadata": {}, "outputs": [ { @@ -1130,7 +1121,7 @@ "text": [ "..............................\n", "----------------------------------------------------------------------\n", - "Ran 30 tests in 0.023s\n", + "Ran 30 tests in 0.039s\n", "\n", "OK\n" ] @@ -1165,7 +1156,7 @@ }, { "cell_type": "code", - "execution_count": 49, + "execution_count": 23, "metadata": {}, "outputs": [], "source": [ @@ -1197,7 +1188,7 @@ }, { "cell_type": "code", - "execution_count": 50, + "execution_count": 24, "metadata": {}, "outputs": [ { @@ -1227,7 +1218,7 @@ }, { "cell_type": "code", - "execution_count": 51, + "execution_count": 25, "metadata": {}, "outputs": [], "source": [ @@ -1255,7 +1246,7 @@ }, { "cell_type": "code", - "execution_count": 52, + "execution_count": 26, "metadata": {}, "outputs": [ { diff --git a/mod/__pycache__/testing.cpython-311.pyc b/mod/__pycache__/testing.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e8b3aad45d741acf19e3a35bfcfecafedb73c755 GIT binary patch literal 23863 zcmeG^e{d6LcDpOdmW?a}A%^7mu{JiK00v`7j!TXJHopv*AGR?OV6oP&Y}vBpd@EsF zF{!7MCQgRCY z^|-t)@GE$Q@s@~%0NtV!V5wLHaIshnaEZ7G;8M{A@G-Fj;4;w-@bL~tEPaRdmWhku zZMnDv;0kdmz$ZkuiSax(ffa7_u&Dwfi7~$fuA+e8k48vP2zj`aLyn5lg_OM~B1#@x zs#K8u!Jsb`>63_GkR{zC*4vx*C=i1k!KmzK(=CAyY%d%9C*J_y*O=EFml=*ZzzjQv znE)rUuQ)|6it*A{myz~eNcBFZq}Lmcs1d?2U3yzH??UMN={O8?k&PA_FVM#CLYnuD zboI=+vlqE&Q6@&0LwAdI(eWI}Pu2kV!w~a@Ysp)lE6s|lLUmPq z?%Md7Yop@YthzQQU7PPdv3j`vQp4RRd3YQihTkM4Vk~nL$1LrO^Wb=!z03?U32;rl zU>rjWXXfU2A!cR{iWp|J{$DUZ=B#rUX&Uqa*Lc6UsWTD_iF~`nkJ(a-pgAQH-S=Wl z2xS_5j3bXj4N_bnEMunp5Ltomg(Mcn?uf6Ssj1Qt7elJarvX4q-E}Sg+_myE*UBp= zubfOQ8+r1IZ&duCJNazOZTlyS-~qSdI;FZ!CH0#;2}#EaaJYnp9tnm^vCjux7Ym`= zwXNQ)<7pF0|iOo@KKm??Q&b*)xhyz1hI_I**Z^sU<0y_dZA7|u~k!7%%Ud)cM%m6pVI#l1mw zZ@6Ce!Rn73ABl>mPW99cmk+adoh5IUyixL2@U38CNunm{igk6nWKn34w}hVff54$ zw5Rze5a0*mpLR2y&CFISC7qFfdM|RK{T0T{WpnUJ2XJ4Qz8QXMNKfysczKRNmx;0#l22k|4lzmh3GE&gzH{Ny%U7gCy;AB? zOFc#a#dQK%F{uVH=Ac}Q>_iW&N6ID;qA@L$0Fh~>c~*&~BIFo^qR2A&YXCaa!d5SI z%nlk%>lBMjOHY)SX>CEKwFP(*#q-vVpO^jJ>f7AyT4m=kb>}gq_PAPm98guJPL^$sY5_{aXwzt1hFif>;LPAfwDC~-Bl7h7>^gwKU8HMd3=7#VQ z`=NhGBc~I%e3%vCCP-*!AlyYpGZ6`5BbAr`9l+NmmDhpP&pGN?l*_RnuE%bjy4g0q zcU)F>99DN6R<;~bw;X{0#eGzDAI+A__mA!x-SyGhj|8Q1w_3SdDchr#?NOY2Rp;I$ zy}z1#KB6(HKdwn8IA2W4qL@P60=>inv9N=)GMoT+(S~NVi*_*Nm<&jI8Z?ifA%|lI zK^67gEE9z_FJN9>bI!bq=8kz)&>0Z{Lx?~P5(`#{-#9ZO1|vgpawb{+Jj8hrrPIUM zKxR}lJv9rY(ku++RI(PqjADEz#G+#LQ%3ap6ytqZ3N3GXFwd( z#w5K*Yu+ySf%}S_*rqIAr!HQn`2x&vu>0)B6#JBgkD;!H@-dXyfse5w+fDf#DK*bi zFgyY^%&hjCm?-j>^aVCg;DDgg2EU9^8myo8MiPQJmJ;)GP9i{j(hk7PHHjZQ;?+63 zUkJ;YnX2>9X3Rw6p=fs)s~t)Y1`z^09BG9I<&xlT1b2#y^qLC=jaFDrud1f&4hTJo zMc`5xY-puR-l}_}f4KjeEm3#XIpVys=8GrRB-{!2sC=VFd18n9#E#_B9kerMV&JI) ze`h4Y) zJRPRD9Jc~D!{aA!+mxq|s81hJwjNct9))45ls2lRjdzZpQjecY`r4EJK(ehvIo_!r z?@YRb!?t@ISM)T<3pyxZirj{M3EDhSH~LuOkWyBymQ^dxEvj=%lHOlU2so_?0e@V( zQeB>X8CiCuyt^&Fnx&}TOc1)}V%6!GJI1YPyN&%h8EViB2Gd7mpT%rUMH-9Chljzo zy*Td|+WJ#7h2_OB&A}<3tV0}U z-*8hZYoJ8pkPRxrzZ#W%^--Xb4`O{U$fsdj(AM|DxudD8>A;44FE7TV z1xrx1{ZKiPFsNx4PX6hsDXw{`jQlD%@-2eQGI4rS7?q_VS(f~4m8QWaZ%EVBCU3mu z+AcL&UKCf*IeY@+{hQ(`In>PH%` zt{z#ftlFxs+Ipk%=EmgnFWj#GUIE06IAbS2U<5YIyQ-#q90T)?qjg`_a-it{kYPmlrQ1X0uyf z{24^;$LP~6FXn@h&?Uz1m zvXKeo#}jl504|xx>i}lQP;ey7z);ebCa5gA1hM*<@j#@CMfmD&ciwn5o^SlxUW8bWa&QQb#wlRGVE)E0kIl#+o?r6s7g1e48O%CRoR z-IdL2>PH{DdT3&%CU96AF0^OFNIHJS~R%~<)C`NvPi;~EOg8c8jGYLT_ov=@-C8erQbvC zYTh@x_G-gO!^5irJ*DxgRv{FPZ{ouPJ-wZq_&|j4FUErYZoVtnA@dicetvIEtd3VT z^>zls{d^?Aw}%7>hQnb5({;tf4vFs>;4eh_s^c4uV;H=(NBa4`V6>AD1TRRu7>P?^ zJ_K4Q$i6GqAy>!O9tZ{7`L2k+TgC$8S_SxMgqA7x2_#S*U)KQHi9(;uha!*-<{Rwb zWuq!uC7^cAosw1(lnbX0q3F0kL>bEJ>DBNF4OGV~4@UYhdx#MlNTVqVfhZrB+KHgW zE{|89p!mn7-p&Cc1GZm4+#BwH4&@o_-3qH zmoTu2?+tcf`}S|risRvU8Ak1kgf2+f27qdL+|va8AVfQZaf${#Oc)6E^Cx0Lw?z0z zdzS>~EFnR4e9N9Rn(LwFk#;^P>#gVS1hi?h`nv(qU>J(+sE%)I6{7x5etm-!>4nxA zC||#c-xGo!ZYEN@)D79dDNerml-3^|a3-)izJ2ci-vDjD39G6N3^^JT2XG)j(x5-m zK?GcXoF*4Mfw}Vi1z#f5M4ZTgB%>XmZ&gfEVnax(0w&%vMb5>Me(#z z`m&agFbr~fI6lp32W`_Ifqoa_y>BG4=9={e+RR)>)?jB(z_MgV%R9ZS`6m|X{^nLpC2n%;_zIG5gHx`EY^&Yft4)F_zEme0uatn7&SDy#Fv@nIEb(U-Q zA3{_dfDbASIoTpylRg;CNJAF7gd?6dI4*tD`sFul==e_dUlsnaP^-hI zkAHgMlb4fi=aYh{9Fx>zl5!}Z9tuFH!gr_uS9Gc?I@4*F57G)xltP{!SJv^2lrvow zS*t!C&mcnxuw7Hmpe)DQ!4#Bo(2tO0G&1J1dMO7At#Znak7>=>+7a_~QRJ^7>ud0r z{|kVottp^K?q&WPe;CFRA1u@KKfzssLSsL;LP7 zejFyG<1|i7fWvn4DLwnOrt52zs-0@p&d;m%epa>jSGD8Oe~kY!{)@qn2bH>JwXRvI zYEi3Nl(JK5*(t@@sybVf^nNJQH}YgEYkdD}ku|7%f!&hm(8&lICYi(J{5j;Oiyv#mB)!LLt`&@wT#qRHE|uS< z`2p0pInrP4$kNr^Rna!a&88}}{Iie~eD8%}mLK8FFxl1p7P;K_{XVS@pE^Dbd=gHc zYfJhBrLkRYY*!BY)q{QrRn~|qz~z#>Xx)) zb$>7$|+=$)sA%GnAE-Gog1L3IxIYOe62p{X|4F#ha5sSPB zq1oqRHT@uM81hpH{|Ux1@4TJ|tJgg)gW~TQrjD-ltUUSF83bWe3!<1B&yY z>O7dF_d^L*$mFSDRj&zF^L+dY1*@q$DzZhJY3x@vP~AL5k3`}0o^sJ6QFb^I#SLbu zf~FIo1GklBGW%$^m+u-%R#s@pc;ekg9E>dXdb@s5iU4S^olczOY8Jy)*3`j z!&u}3_Uvh9)~LRowS!W$b<@cKn~@-A>ogMWS{P_JK!XT$#JF&2L95#f4m3T|@A7Q3 zsyNKsIA6~?3~3I_o^Np|DXSt(H>D1s5UGXAuml?djE=UD6sAjekBuAxuN3PC))GZk zH~pp&d_Gb8d=x4d;#;VcV(nM`kW*$JX2h0HAd!sOg7FXNd_^5ndjpQM*Ve+9*w$U` z9_hZd_J;7`x|{2ib>CDfcB&OSKPvyM;#qTS%}qQ1zI*NN^2(}p8$4}KojLc?#R+Uo zg8dF#gMm#% zHE^dh3~w*8dl1F_?A|n{z}Em@;A;SZ3m)JaFyJtE0=eJ;?j#1`13XW0t=xa$TPw|i zJB?8)C|vyl#sdh^&T(xRZFL(rq)i3OuzG|wd{aeioOE;!p#C>K18S@@AoFD^^K=y% zJmPMiv^e#m*x~65-^FPrB#i%UF#fp-ly0ZtPJicif67mHU1bP%4ikkDgO1&nabXYFV2( zzUHRme*!1(#A2-QRRq&lQ_~h?4{Tj^N$ZAcU^+8P&S2fl@Gy6T8$S7F>l>}+O5Ew} zxf716;lbp^m%)EGw-*O#gr!3qAMh3gIT=PPKD4CZ2Uvp_KybVFqZ?pWiBNh*2=)|a z=^Ra(#%B;`+#zi~hL|e!cS`Yq*g}NT!EV;RDlP(WPgTQpIu< zj-|t=as9HkKLMvQrLWmj=-U`@3;~`*qF;BQhd=4zB)X%U?!%+o7RU%jK}9cJrO^J- zj^R?4zXAf_s}