diff --git a/.ipynb_checkpoints/main-checkpoint.ipynb b/.ipynb_checkpoints/main-checkpoint.ipynb new file mode 100644 index 0000000..2f1d8c2 --- /dev/null +++ b/.ipynb_checkpoints/main-checkpoint.ipynb @@ -0,0 +1,2509 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Functions" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "On this lab we will put to practice some of the concepts we have learned on this past few days.\n", + "\n", + "`NOTE: On this lab you should try to write all the functions yourself using only the most basic of python syntax and without functions such as len, count, sum, max, min, in, etc. Give it a try. 🧑🏻‍💻👩🏻‍💻`\n", + "\n", + "The cell after each exercise contains a few tests to check if your function works as expected." + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": {}, + "outputs": [], + "source": [ + "from mod.testing import *\n", + "import unittest" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 1. Write a function that returns the greater of two numbers" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [], + "source": [ + "def greater(a,b):\n", + " if ab:\n", + " return a \n", + " else:\n", + " return (\"a and b are equal\")" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.046s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_greater(greater)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 2. Now write a function that returns the largest element on a list" + ] + }, + { + "cell_type": "code", + "execution_count": 48, + "metadata": {}, + "outputs": [], + "source": [ + "def greatest(arr):\n", + " max_n=arr[0]\n", + " for i in arr:\n", + " if max_n < i:\n", + " max_n= i\n", + " return max_n\n", + " \n", + "\n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": 49, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.052s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_greatest(greatest)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 3. Write a function that sums all the elements on a list" + ] + }, + { + "cell_type": "code", + "execution_count": 52, + "metadata": {}, + "outputs": [], + "source": [ + "def sum_all(arr):\n", + " sum_list=0\n", + " for i in arr:\n", + " sum_list +=i\n", + " return sum_list\n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": 53, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.049s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_sum(sum_all)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 4. Write another function that multiplies all the elements on a list" + ] + }, + { + "cell_type": "code", + "execution_count": 75, + "metadata": {}, + "outputs": [], + "source": [ + "def mult_all(arr):\n", + " mult=1\n", + " for i in arr:\n", + " mult = mult*i\n", + " return mult\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 76, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.051s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_mult(mult_all)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 5. Now combine those two ideas and write a function that receives a list and either \"+\" or \"*\" and outputs acordingly" + ] + }, + { + "cell_type": "code", + "execution_count": 79, + "metadata": {}, + "outputs": [], + "source": [ + "def oper_all(arr, oper):\n", + " if oper == \"+\":\n", + " sum_list=0\n", + " for i in arr:\n", + " sum_list +=i\n", + " return sum_list\n", + " if oper == \"*\":\n", + " mult=1\n", + " for i in arr:\n", + " mult = mult*i\n", + " return mult\n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": 80, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.054s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_operations(oper_all)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 6. Write a function that returns the factorial of a number." + ] + }, + { + "cell_type": "code", + "execution_count": 65, + "metadata": {}, + "outputs": [], + "source": [ + "def factorial(n):\n", + " fact_n = 1\n", + " for i in range (1, n+1):\n", + " fact_n = fact_n *i\n", + " return fact_n" + ] + }, + { + "cell_type": "code", + "execution_count": 66, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.047s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_factorial(factorial)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 7. Write a function that takes a list and returns a list of the unique values.\n", + "\n", + "`NOTE: You cannot use set. 🤔`" + ] + }, + { + "cell_type": "code", + "execution_count": 83, + "metadata": {}, + "outputs": [], + "source": [ + "def unique(arr):\n", + " one =[]\n", + " for i in arr:\n", + " if i not in one:\n", + " one.append(i)\n", + " return one\n", + " \n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": 84, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.135s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_unique(unique)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 8. Write a function that returns the mode of a list, i.e.: the element that appears the most times.\n", + "`NOTE: You should not use count... 🧐`" + ] + }, + { + "cell_type": "code", + "execution_count": 145, + "metadata": {}, + "outputs": [], + "source": [ + "def mode_counter(arr):\n", + " mode={}\n", + " for i in arr:\n", + " if i in mode:\n", + " mode[i]+=1\n", + " else:\n", + " mode[i]=1\n", + " for a,b in mode.items():\n", + " if b == max(mode.values):\n", + " return mode\n", + "\n", + " \n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": 146, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.101s\n", + "\n", + "FAILED (errors=100)\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_mode(mode_counter)\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 9. Write a function that calculates the standard deviation of a list.\n", + "`NOTE: Do not use any libraries or already built functions. 😉`" + ] + }, + { + "cell_type": "code", + "execution_count": 136, + "metadata": {}, + "outputs": [], + "source": [ + "from statistics import stdev\n", + "def st_dev(arr):\n", + " x=len(arr)\n", + " mean= sum(arr)/x\n", + " devi=(x-mean)**2\n", + " return devi" + ] + }, + { + "cell_type": "code", + "execution_count": 137, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 62216.81634605166 != 557.910646729095 within 5 delta (61658.90569932256 difference) : Should be 557.910646729095\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 47633.0625 != 543.1786477148502 within 5 delta (47089.88385228515 difference) : Should be 543.1786477148502\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 22753.340720221604 != 591.096721981134 within 5 delta (22162.24399824047 difference) : Should be 591.096721981134\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 121801.0 != 463.8064251387641 within 5 delta (121337.19357486123 difference) : Should be 463.8064251387641\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 140.3313609467454 != 564.0954620538001 within 5 delta (423.7641011070547 difference) : Should be 564.0954620538001\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10991.616219008265 != 551.9932301426368 within 5 delta (10439.622988865629 difference) : Should be 551.9932301426368\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1869.5328798185944 != 596.2359971642105 within 5 delta (1273.2968826543838 difference) : Should be 596.2359971642105\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 11683.423810124983 != 591.3161099009534 within 5 delta (11092.107700224029 difference) : Should be 591.3161099009534\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 69114.59690844231 != 465.1325728701739 within 5 delta (68649.46433557213 difference) : Should be 465.1325728701739\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10029.187934027777 != 583.5012646748874 within 5 delta (9445.68666935289 difference) : Should be 583.5012646748874\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 17761.619834710746 != 558.7864793867641 within 5 delta (17202.833355323983 difference) : Should be 558.7864793867641\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1178.2263028015682 != 536.8456677085213 within 5 delta (641.3806350930469 difference) : Should be 536.8456677085213\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 32980.76124885216 != 559.530065544836 within 5 delta (32421.231183307325 difference) : Should be 559.530065544836\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 3583.8020452885326 != 451.23412019840794 within 5 delta (3132.567925090125 difference) : Should be 451.23412019840794\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 19536.05224489796 != 610.2458080302456 within 5 delta (18925.806436867715 difference) : Should be 610.2458080302456\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 13980.24716553288 != 578.2684585365597 within 5 delta (13401.97870699632 difference) : Should be 578.2684585365597\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 29606.341878900323 != 554.4355436331132 within 5 delta (29051.90633526721 difference) : Should be 554.4355436331132\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 24408.61222282315 != 532.9966870802652 within 5 delta (23875.615535742887 difference) : Should be 532.9966870802652\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2751.2993948024205 != 515.649089312823 within 5 delta (2235.6503054895975 difference) : Should be 515.649089312823\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 4083.21 != 648.4567063420657 within 5 delta (3434.7532936579346 difference) : Should be 648.4567063420657\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 25992.60493827161 != 647.1140053713198 within 5 delta (25345.490932900288 difference) : Should be 647.1140053713198\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2149.0835375361994 != 580.1884934433087 within 5 delta (1568.8950440928907 difference) : Should be 580.1884934433087\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 28277.4798553719 != 613.978976353267 within 5 delta (27663.500879018633 difference) : Should be 613.978976353267\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 4837.202499999999 != 597.1396191406786 within 5 delta (4240.062880859321 difference) : Should be 597.1396191406786\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 4485.278549382717 != 529.6813544440623 within 5 delta (3955.5971949386544 difference) : Should be 529.6813544440623\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 13052.279977481703 != 569.1691015277817 within 5 delta (12483.110875953922 difference) : Should be 569.1691015277817\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1472.640625 != 540.3726006518199 within 5 delta (932.2680243481801 difference) : Should be 540.3726006518199\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10781.36111111111 != 577.9578324932978 within 5 delta (10203.403278617812 difference) : Should be 577.9578324932978\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 25309.9173553719 != 521.5525275185989 within 5 delta (24788.364827853304 difference) : Should be 521.5525275185989\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2279.1783264746236 != 581.4743590214707 within 5 delta (1697.703967453153 difference) : Should be 581.4743590214707\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 468.02142432057127 != 596.2097722742659 within 5 delta (128.18834795369463 difference) : Should be 596.2097722742659\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 6544.39513477975 != 554.9592111550937 within 5 delta (5989.435923624656 difference) : Should be 554.9592111550937\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2811.4656571119517 != 504.0096601668744 within 5 delta (2307.4559969450775 difference) : Should be 504.0096601668744\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 7203.765625 != 550.4202051821202 within 5 delta (6653.34541981788 difference) : Should be 550.4202051821202\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1028.1331945889697 != 500.5141979660431 within 5 delta (527.6189966229265 difference) : Should be 500.5141979660431\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 3108.0625 != 569.6810626639214 within 5 delta (2538.3814373360788 difference) : Should be 569.6810626639214\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10363.24 != 599.5174052093369 within 5 delta (9763.722594790663 difference) : Should be 599.5174052093369\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 6486.691599999998 != 573.6326140644092 within 5 delta (5913.05898593559 difference) : Should be 573.6326140644092\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 20506.965069700367 != 608.0009779797051 within 5 delta (19898.964091720663 difference) : Should be 608.0009779797051\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 4677.450876552227 != 612.1560329691126 within 5 delta (4065.294843583114 difference) : Should be 612.1560329691126\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2468.754956560482 != 571.8551206898904 within 5 delta (1896.8998358705912 difference) : Should be 571.8551206898904\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 15044.429991937654 != 582.2545515850693 within 5 delta (14462.175440352585 difference) : Should be 582.2545515850693\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 473.35646457268086 != 642.8315575727528 within 5 delta (169.47509300007192 difference) : Should be 642.8315575727528\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 7445.486758714351 != 577.1716843094533 within 5 delta (6868.315074404897 difference) : Should be 577.1716843094533\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 8739.328369140625 != 594.5775876103069 within 5 delta (8144.750781530318 difference) : Should be 594.5775876103069\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 8760.96 != 624.9088561390474 within 5 delta (8136.051143860952 difference) : Should be 624.9088561390474\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 15319.28131804326 != 526.3600577296877 within 5 delta (14792.921260313573 difference) : Should be 526.3600577296877\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 26527.797595455148 != 615.2500305623099 within 5 delta (25912.547564892837 difference) : Should be 615.2500305623099\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 4478.466860244919 != 576.8708738593518 within 5 delta (3901.5959863855674 difference) : Should be 576.8708738593518\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 989.1025 != 617.1907768953987 within 5 delta (371.91172310460126 difference) : Should be 617.1907768953987\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5796.017313019389 != 580.0991141340082 within 5 delta (5215.918198885381 difference) : Should be 580.0991141340082\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 159.390625 != 541.3394762729101 within 5 delta (381.94885127291013 difference) : Should be 541.3394762729101\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 3237.9261188271607 != 580.6892980219678 within 5 delta (2657.236820805193 difference) : Should be 580.6892980219678\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 4015.70179584121 != 573.4006688635269 within 5 delta (3442.301126977683 difference) : Should be 573.4006688635269\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 108.69993141289433 != 565.2144225567033 within 5 delta (456.514491143809 difference) : Should be 565.2144225567033\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 406.78912914104336 != 631.2822096091526 within 5 delta (224.4930804681092 difference) : Should be 631.2822096091526\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 16606.080837673613 != 556.7755216146793 within 5 delta (16049.305316058933 difference) : Should be 556.7755216146793\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1372.0850694444443 != 547.7420433146361 within 5 delta (824.3430261298082 difference) : Should be 547.7420433146361\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 55814.0625 != 625.9476467898406 within 5 delta (55188.11485321016 difference) : Should be 625.9476467898406\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10640.715976331363 != 637.467189416379 within 5 delta (10003.248786914985 difference) : Should be 637.467189416379\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1098.985048059808 != 598.611964857241 within 5 delta (500.37308320256693 difference) : Should be 598.611964857241\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 11868.179930795846 != 542.5765465107476 within 5 delta (11325.6033842851 difference) : Should be 542.5765465107476\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 6453.444444444446 != 620.2655151118332 within 5 delta (5833.178929332613 difference) : Should be 620.2655151118332\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5048.891975308642 != 469.17763583556916 within 5 delta (4579.714339473073 difference) : Should be 469.17763583556916\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10155.438085327785 != 580.6569205019331 within 5 delta (9574.781164825852 difference) : Should be 580.6569205019331\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 13118.869695918602 != 627.0153690498965 within 5 delta (12491.854326868704 difference) : Should be 627.0153690498965\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10262.303948576675 != 568.0746806565404 within 5 delta (9694.229267920135 difference) : Should be 568.0746806565404\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1829.700625 != 493.46381612081024 within 5 delta (1336.2368088791898 difference) : Should be 493.46381612081024\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 14400.0 != 620.3590446364872 within 5 delta (13779.640955363513 difference) : Should be 620.3590446364872\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 6820.006944444443 != 560.9030941913642 within 5 delta (6259.103850253079 difference) : Should be 560.9030941913642\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 15069.221329437545 != 612.7355059895748 within 5 delta (14456.48582344797 difference) : Should be 612.7355059895748\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1185.94140625 != 606.4147061486334 within 5 delta (579.5267001013666 difference) : Should be 606.4147061486334\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 7921.0 != 622.610470092139 within 5 delta (7298.389529907861 difference) : Should be 622.610470092139\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5.694731404958662 != 538.9403995140184 within 5 delta (533.2456681090597 difference) : Should be 538.9403995140184\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 11832.604938271603 != 558.3514614978669 within 5 delta (11274.253476773736 difference) : Should be 558.3514614978669\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5105.752066115702 != 580.4325643194807 within 5 delta (4525.319501796222 difference) : Should be 580.4325643194807\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 23279.838452545435 != 592.0369469581893 within 5 delta (22687.801505587246 difference) : Should be 592.0369469581893\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 11576.4150390625 != 602.1052774398908 within 5 delta (10974.30976162261 difference) : Should be 602.1052774398908\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 7875.294693877549 != 614.1580723357189 within 5 delta (7261.13662154183 difference) : Should be 614.1580723357189\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 12581.361111111111 != 524.8649799009615 within 5 delta (12056.49613121015 difference) : Should be 524.8649799009615\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 22122.648199445983 != 667.0736126383374 within 5 delta (21455.574586807645 difference) : Should be 667.0736126383374\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 690.938775510204 != 571.1369144084455 within 5 delta (119.8018611017585 difference) : Should be 571.1369144084455\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1966.3681640625 != 507.62868124663083 within 5 delta (1458.7394828158692 difference) : Should be 507.62868124663083\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1999.7666015625 != 599.1289303634175 within 5 delta (1400.6376711990824 difference) : Should be 599.1289303634175\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1936.0 != 584.7781892412241 within 5 delta (1351.221810758776 difference) : Should be 584.7781892412241\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 13411.134235171698 != 527.762157248562 within 5 delta (12883.372077923135 difference) : Should be 527.762157248562\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2219.4567901234573 != 558.4328701287664 within 5 delta (1661.023919994691 difference) : Should be 558.4328701287664\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 172.56404958677686 != 563.2591635130185 within 5 delta (390.6951139262417 difference) : Should be 563.2591635130185\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1031.6332199546487 != 585.6282098022124 within 5 delta (446.0050101524363 difference) : Should be 585.6282098022124\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 11156.142399430406 != 582.39070372491 within 5 delta (10573.751695705496 difference) : Should be 582.39070372491\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 3990.0277777777774 != 581.7985604758329 within 5 delta (3408.2292173019446 difference) : Should be 581.7985604758329\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1903.7146814404434 != 585.83395955254 within 5 delta (1317.8807218879033 difference) : Should be 585.83395955254\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5190.752197265625 != 496.3382880461224 within 5 delta (4694.413909219503 difference) : Should be 496.3382880461224\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2771.1581644018706 != 521.8352434028862 within 5 delta (2249.3229209989845 difference) : Should be 521.8352434028862\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 251.2562245359892 != 564.9612521812757 within 5 delta (313.70502764528646 difference) : Should be 564.9612521812757\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5325.054784514244 != 661.251737510277 within 5 delta (4663.803047003967 difference) : Should be 661.251737510277\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 7529.760665972946 != 654.2405118240753 within 5 delta (6875.520154148871 difference) : Should be 654.2405118240753\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 29508.7978515625 != 565.7986847322436 within 5 delta (28942.999166830257 difference) : Should be 565.7986847322436\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 19641.50342935528 != 542.0854817421967 within 5 delta (19099.417947613085 difference) : Should be 542.0854817421967\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 7649.157048940831 != 586.3757547266179 within 5 delta (7062.781294214214 difference) : Should be 586.3757547266179\n", + "\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.086s\n", + "\n", + "FAILED (failures=100)\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_stdev(st_dev)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 10. Write a function to check if a string is a pangram, i.e.: if it contains all the letters of the alphabet at least once. Mind that the strings may contain characters that are not letters." + ] + }, + { + "cell_type": "code", + "execution_count": 118, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "..............................\n", + "----------------------------------------------------------------------\n", + "Ran 30 tests in 0.017s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_pangram(pangram)" + ] + }, + { + "cell_type": "code", + "execution_count": 117, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 117, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "def pangram(string):\n", + " alpha=[\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"]\n", + " assumption= True\n", + " for i in alpha:\n", + " if string.isalpha():\n", + " if i not in string:\n", + " assumption= False\n", + " return assumption\n", + " \n", + " \n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 11. Write a function that receives a string of comma separated words and returns a string of comma separated words sorted alphabetically.\n", + "\n", + "`NOTE: You may use sorted but not split and definitely no join! 🤪`" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "def sort_alpha(string):\n", + " pass" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# This will test your function \n", + "test_alpha(sort_alpha)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 12. Write a function to check if a given password is strong (at least 8 characters, at least one lower case, at least one upper case, at least one number and at least one special character). It should output True if strong and False if not.\n", + "`Valid special characters: # @ ! $ % & ( ) ^ * [ ] { }`" + ] + }, + { + "cell_type": "code", + "execution_count": 132, + "metadata": {}, + "outputs": [], + "source": [ + "def check_pass(string):\n", + " special_characters = [\"#\",\"@\", \"!\", \"$\", \"%\", \"&\", \"(\",\")\", \"^\", \"*\", \"[\",\"]\", \"{\",\"}\"]\n", + " char=0\n", + " upp_c=0\n", + " low_c=0\n", + " num=0\n", + " spe_c=0\n", + " if len(string) >= 8:\n", + " char+=1\n", + " for i in string:\n", + " if i.isupper():\n", + " upp_c+=1 \n", + " if i.islower():\n", + " low_c+=1\n", + " if i.isdigit():\n", + " num+=1\n", + " if i in special_characters:\n", + " spe_c+=1\n", + " if char>0 and upp_c>0 and low_c>0 and num>0 and spe_c>0:\n", + " return True\n", + " else:\n", + " return False\n", + " else:\n", + " return False\n", + " \n", + " \n", + " \n", + " \n", + " " + ] + }, + { + "cell_type": "code", + "execution_count": 133, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.066s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_pass(check_pass)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.9.12" + } + }, + "nbformat": 4, + "nbformat_minor": 4 +} diff --git a/main.ipynb b/main.ipynb index 73f285a..2f1d8c2 100644 --- a/main.ipynb +++ b/main.ipynb @@ -20,7 +20,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 19, "metadata": {}, "outputs": [], "source": [ @@ -37,22 +37,39 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 20, "metadata": {}, "outputs": [], "source": [ "def greater(a,b):\n", - " pass" + " if ab:\n", + " return a \n", + " else:\n", + " return (\"a and b are equal\")" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 21, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.046s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", - "test_greater(greater)" + "test_greater(greater)\n" ] }, { @@ -64,19 +81,38 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 48, "metadata": {}, "outputs": [], "source": [ "def greatest(arr):\n", - " pass" + " max_n=arr[0]\n", + " for i in arr:\n", + " if max_n < i:\n", + " max_n= i\n", + " return max_n\n", + " \n", + "\n", + " " ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 49, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.052s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_greatest(greatest)" @@ -91,19 +127,35 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 52, "metadata": {}, "outputs": [], "source": [ "def sum_all(arr):\n", - " pass" + " sum_list=0\n", + " for i in arr:\n", + " sum_list +=i\n", + " return sum_list\n", + " " ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 53, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.049s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_sum(sum_all)" @@ -118,19 +170,35 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 75, "metadata": {}, "outputs": [], "source": [ "def mult_all(arr):\n", - " pass" + " mult=1\n", + " for i in arr:\n", + " mult = mult*i\n", + " return mult\n", + "\n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 76, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.051s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_mult(mult_all)" @@ -145,19 +213,41 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 79, "metadata": {}, "outputs": [], "source": [ "def oper_all(arr, oper):\n", - " pass" + " if oper == \"+\":\n", + " sum_list=0\n", + " for i in arr:\n", + " sum_list +=i\n", + " return sum_list\n", + " if oper == \"*\":\n", + " mult=1\n", + " for i in arr:\n", + " mult = mult*i\n", + " return mult\n", + " " ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 80, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.054s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_operations(oper_all)" @@ -172,19 +262,34 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 65, "metadata": {}, "outputs": [], "source": [ "def factorial(n):\n", - " pass" + " fact_n = 1\n", + " for i in range (1, n+1):\n", + " fact_n = fact_n *i\n", + " return fact_n" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 66, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.047s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_factorial(factorial)" @@ -201,19 +306,37 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 83, "metadata": {}, "outputs": [], "source": [ "def unique(arr):\n", - " pass" + " one =[]\n", + " for i in arr:\n", + " if i not in one:\n", + " one.append(i)\n", + " return one\n", + " \n", + " " ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 84, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.135s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_unique(unique)" @@ -229,22 +352,1087 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 145, "metadata": {}, "outputs": [], "source": [ "def mode_counter(arr):\n", - " pass" + " mode={}\n", + " for i in arr:\n", + " if i in mode:\n", + " mode[i]+=1\n", + " else:\n", + " mode[i]=1\n", + " for a,b in mode.items():\n", + " if b == max(mode.values):\n", + " return mode\n", + "\n", + " \n", + " " ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 146, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_mode..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 127, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " File \"C:\\Users\\34603\\AppData\\Local\\Temp\\ipykernel_4668\\3006759184.py\", line 9, in mode_counter\n", + " if b == max(mode.values):\n", + "TypeError: 'builtin_function_or_method' object is not iterable\n", + "\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.101s\n", + "\n", + "FAILED (errors=100)\n" + ] + } + ], "source": [ "# This will test your function \n", - "test_mode(mode_counter)" + "test_mode(mode_counter)\n" ] }, { @@ -257,20 +1445,871 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 136, "metadata": {}, "outputs": [], "source": [ "from statistics import stdev\n", "def st_dev(arr):\n", - " pass" + " x=len(arr)\n", + " mean= sum(arr)/x\n", + " devi=(x-mean)**2\n", + " return devi" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 137, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 62216.81634605166 != 557.910646729095 within 5 delta (61658.90569932256 difference) : Should be 557.910646729095\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 47633.0625 != 543.1786477148502 within 5 delta (47089.88385228515 difference) : Should be 543.1786477148502\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 22753.340720221604 != 591.096721981134 within 5 delta (22162.24399824047 difference) : Should be 591.096721981134\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 121801.0 != 463.8064251387641 within 5 delta (121337.19357486123 difference) : Should be 463.8064251387641\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 140.3313609467454 != 564.0954620538001 within 5 delta (423.7641011070547 difference) : Should be 564.0954620538001\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10991.616219008265 != 551.9932301426368 within 5 delta (10439.622988865629 difference) : Should be 551.9932301426368\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1869.5328798185944 != 596.2359971642105 within 5 delta (1273.2968826543838 difference) : Should be 596.2359971642105\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 11683.423810124983 != 591.3161099009534 within 5 delta (11092.107700224029 difference) : Should be 591.3161099009534\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 69114.59690844231 != 465.1325728701739 within 5 delta (68649.46433557213 difference) : Should be 465.1325728701739\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10029.187934027777 != 583.5012646748874 within 5 delta (9445.68666935289 difference) : Should be 583.5012646748874\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 17761.619834710746 != 558.7864793867641 within 5 delta (17202.833355323983 difference) : Should be 558.7864793867641\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1178.2263028015682 != 536.8456677085213 within 5 delta (641.3806350930469 difference) : Should be 536.8456677085213\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 32980.76124885216 != 559.530065544836 within 5 delta (32421.231183307325 difference) : Should be 559.530065544836\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 3583.8020452885326 != 451.23412019840794 within 5 delta (3132.567925090125 difference) : Should be 451.23412019840794\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 19536.05224489796 != 610.2458080302456 within 5 delta (18925.806436867715 difference) : Should be 610.2458080302456\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 13980.24716553288 != 578.2684585365597 within 5 delta (13401.97870699632 difference) : Should be 578.2684585365597\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 29606.341878900323 != 554.4355436331132 within 5 delta (29051.90633526721 difference) : Should be 554.4355436331132\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 24408.61222282315 != 532.9966870802652 within 5 delta (23875.615535742887 difference) : Should be 532.9966870802652\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2751.2993948024205 != 515.649089312823 within 5 delta (2235.6503054895975 difference) : Should be 515.649089312823\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 4083.21 != 648.4567063420657 within 5 delta (3434.7532936579346 difference) : Should be 648.4567063420657\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 25992.60493827161 != 647.1140053713198 within 5 delta (25345.490932900288 difference) : Should be 647.1140053713198\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2149.0835375361994 != 580.1884934433087 within 5 delta (1568.8950440928907 difference) : Should be 580.1884934433087\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 28277.4798553719 != 613.978976353267 within 5 delta (27663.500879018633 difference) : Should be 613.978976353267\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 4837.202499999999 != 597.1396191406786 within 5 delta (4240.062880859321 difference) : Should be 597.1396191406786\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 4485.278549382717 != 529.6813544440623 within 5 delta (3955.5971949386544 difference) : Should be 529.6813544440623\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 13052.279977481703 != 569.1691015277817 within 5 delta (12483.110875953922 difference) : Should be 569.1691015277817\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1472.640625 != 540.3726006518199 within 5 delta (932.2680243481801 difference) : Should be 540.3726006518199\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10781.36111111111 != 577.9578324932978 within 5 delta (10203.403278617812 difference) : Should be 577.9578324932978\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 25309.9173553719 != 521.5525275185989 within 5 delta (24788.364827853304 difference) : Should be 521.5525275185989\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2279.1783264746236 != 581.4743590214707 within 5 delta (1697.703967453153 difference) : Should be 581.4743590214707\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 468.02142432057127 != 596.2097722742659 within 5 delta (128.18834795369463 difference) : Should be 596.2097722742659\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 6544.39513477975 != 554.9592111550937 within 5 delta (5989.435923624656 difference) : Should be 554.9592111550937\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2811.4656571119517 != 504.0096601668744 within 5 delta (2307.4559969450775 difference) : Should be 504.0096601668744\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 7203.765625 != 550.4202051821202 within 5 delta (6653.34541981788 difference) : Should be 550.4202051821202\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1028.1331945889697 != 500.5141979660431 within 5 delta (527.6189966229265 difference) : Should be 500.5141979660431\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 3108.0625 != 569.6810626639214 within 5 delta (2538.3814373360788 difference) : Should be 569.6810626639214\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10363.24 != 599.5174052093369 within 5 delta (9763.722594790663 difference) : Should be 599.5174052093369\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 6486.691599999998 != 573.6326140644092 within 5 delta (5913.05898593559 difference) : Should be 573.6326140644092\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 20506.965069700367 != 608.0009779797051 within 5 delta (19898.964091720663 difference) : Should be 608.0009779797051\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 4677.450876552227 != 612.1560329691126 within 5 delta (4065.294843583114 difference) : Should be 612.1560329691126\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2468.754956560482 != 571.8551206898904 within 5 delta (1896.8998358705912 difference) : Should be 571.8551206898904\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 15044.429991937654 != 582.2545515850693 within 5 delta (14462.175440352585 difference) : Should be 582.2545515850693\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 473.35646457268086 != 642.8315575727528 within 5 delta (169.47509300007192 difference) : Should be 642.8315575727528\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 7445.486758714351 != 577.1716843094533 within 5 delta (6868.315074404897 difference) : Should be 577.1716843094533\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 8739.328369140625 != 594.5775876103069 within 5 delta (8144.750781530318 difference) : Should be 594.5775876103069\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 8760.96 != 624.9088561390474 within 5 delta (8136.051143860952 difference) : Should be 624.9088561390474\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 15319.28131804326 != 526.3600577296877 within 5 delta (14792.921260313573 difference) : Should be 526.3600577296877\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 26527.797595455148 != 615.2500305623099 within 5 delta (25912.547564892837 difference) : Should be 615.2500305623099\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 4478.466860244919 != 576.8708738593518 within 5 delta (3901.5959863855674 difference) : Should be 576.8708738593518\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 989.1025 != 617.1907768953987 within 5 delta (371.91172310460126 difference) : Should be 617.1907768953987\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5796.017313019389 != 580.0991141340082 within 5 delta (5215.918198885381 difference) : Should be 580.0991141340082\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 159.390625 != 541.3394762729101 within 5 delta (381.94885127291013 difference) : Should be 541.3394762729101\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 3237.9261188271607 != 580.6892980219678 within 5 delta (2657.236820805193 difference) : Should be 580.6892980219678\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 4015.70179584121 != 573.4006688635269 within 5 delta (3442.301126977683 difference) : Should be 573.4006688635269\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 108.69993141289433 != 565.2144225567033 within 5 delta (456.514491143809 difference) : Should be 565.2144225567033\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 406.78912914104336 != 631.2822096091526 within 5 delta (224.4930804681092 difference) : Should be 631.2822096091526\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 16606.080837673613 != 556.7755216146793 within 5 delta (16049.305316058933 difference) : Should be 556.7755216146793\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1372.0850694444443 != 547.7420433146361 within 5 delta (824.3430261298082 difference) : Should be 547.7420433146361\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 55814.0625 != 625.9476467898406 within 5 delta (55188.11485321016 difference) : Should be 625.9476467898406\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10640.715976331363 != 637.467189416379 within 5 delta (10003.248786914985 difference) : Should be 637.467189416379\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1098.985048059808 != 598.611964857241 within 5 delta (500.37308320256693 difference) : Should be 598.611964857241\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 11868.179930795846 != 542.5765465107476 within 5 delta (11325.6033842851 difference) : Should be 542.5765465107476\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 6453.444444444446 != 620.2655151118332 within 5 delta (5833.178929332613 difference) : Should be 620.2655151118332\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5048.891975308642 != 469.17763583556916 within 5 delta (4579.714339473073 difference) : Should be 469.17763583556916\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10155.438085327785 != 580.6569205019331 within 5 delta (9574.781164825852 difference) : Should be 580.6569205019331\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 13118.869695918602 != 627.0153690498965 within 5 delta (12491.854326868704 difference) : Should be 627.0153690498965\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 10262.303948576675 != 568.0746806565404 within 5 delta (9694.229267920135 difference) : Should be 568.0746806565404\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1829.700625 != 493.46381612081024 within 5 delta (1336.2368088791898 difference) : Should be 493.46381612081024\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 14400.0 != 620.3590446364872 within 5 delta (13779.640955363513 difference) : Should be 620.3590446364872\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 6820.006944444443 != 560.9030941913642 within 5 delta (6259.103850253079 difference) : Should be 560.9030941913642\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 15069.221329437545 != 612.7355059895748 within 5 delta (14456.48582344797 difference) : Should be 612.7355059895748\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1185.94140625 != 606.4147061486334 within 5 delta (579.5267001013666 difference) : Should be 606.4147061486334\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 7921.0 != 622.610470092139 within 5 delta (7298.389529907861 difference) : Should be 622.610470092139\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5.694731404958662 != 538.9403995140184 within 5 delta (533.2456681090597 difference) : Should be 538.9403995140184\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 11832.604938271603 != 558.3514614978669 within 5 delta (11274.253476773736 difference) : Should be 558.3514614978669\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5105.752066115702 != 580.4325643194807 within 5 delta (4525.319501796222 difference) : Should be 580.4325643194807\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 23279.838452545435 != 592.0369469581893 within 5 delta (22687.801505587246 difference) : Should be 592.0369469581893\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 11576.4150390625 != 602.1052774398908 within 5 delta (10974.30976162261 difference) : Should be 602.1052774398908\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 7875.294693877549 != 614.1580723357189 within 5 delta (7261.13662154183 difference) : Should be 614.1580723357189\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 12581.361111111111 != 524.8649799009615 within 5 delta (12056.49613121015 difference) : Should be 524.8649799009615\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 22122.648199445983 != 667.0736126383374 within 5 delta (21455.574586807645 difference) : Should be 667.0736126383374\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 690.938775510204 != 571.1369144084455 within 5 delta (119.8018611017585 difference) : Should be 571.1369144084455\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1966.3681640625 != 507.62868124663083 within 5 delta (1458.7394828158692 difference) : Should be 507.62868124663083\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1999.7666015625 != 599.1289303634175 within 5 delta (1400.6376711990824 difference) : Should be 599.1289303634175\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1936.0 != 584.7781892412241 within 5 delta (1351.221810758776 difference) : Should be 584.7781892412241\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 13411.134235171698 != 527.762157248562 within 5 delta (12883.372077923135 difference) : Should be 527.762157248562\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2219.4567901234573 != 558.4328701287664 within 5 delta (1661.023919994691 difference) : Should be 558.4328701287664\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 172.56404958677686 != 563.2591635130185 within 5 delta (390.6951139262417 difference) : Should be 563.2591635130185\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1031.6332199546487 != 585.6282098022124 within 5 delta (446.0050101524363 difference) : Should be 585.6282098022124\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 11156.142399430406 != 582.39070372491 within 5 delta (10573.751695705496 difference) : Should be 582.39070372491\n", + "\n" + ] + }, + { + "name": "stderr", + "output_type": "stream", + "text": [ + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 3990.0277777777774 != 581.7985604758329 within 5 delta (3408.2292173019446 difference) : Should be 581.7985604758329\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 1903.7146814404434 != 585.83395955254 within 5 delta (1317.8807218879033 difference) : Should be 585.83395955254\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5190.752197265625 != 496.3382880461224 within 5 delta (4694.413909219503 difference) : Should be 496.3382880461224\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 2771.1581644018706 != 521.8352434028862 within 5 delta (2249.3229209989845 difference) : Should be 521.8352434028862\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 251.2562245359892 != 564.9612521812757 within 5 delta (313.70502764528646 difference) : Should be 564.9612521812757\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 5325.054784514244 != 661.251737510277 within 5 delta (4663.803047003967 difference) : Should be 661.251737510277\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 7529.760665972946 != 654.2405118240753 within 5 delta (6875.520154148871 difference) : Should be 654.2405118240753\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 29508.7978515625 != 565.7986847322436 within 5 delta (28942.999166830257 difference) : Should be 565.7986847322436\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 19641.50342935528 != 542.0854817421967 within 5 delta (19099.417947613085 difference) : Should be 542.0854817421967\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"C:\\Users\\34603\\Desktop\\IronhackChallenges\\lab-functions\\mod\\testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + "AssertionError: 7649.157048940831 != 586.3757547266179 within 5 delta (7062.781294214214 difference) : Should be 586.3757547266179\n", + "\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.086s\n", + "\n", + "FAILED (failures=100)\n" + ] + } + ], "source": [ "# This will test your function \n", "test_stdev(st_dev)" @@ -285,12 +2324,54 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 118, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "..............................\n", + "----------------------------------------------------------------------\n", + "Ran 30 tests in 0.017s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_pangram(pangram)" + ] + }, + { + "cell_type": "code", + "execution_count": 117, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 117, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "def pangram(string):\n", - " pass" + " alpha=[\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\"]\n", + " assumption= True\n", + " for i in alpha:\n", + " if string.isalpha():\n", + " if i not in string:\n", + " assumption= False\n", + " return assumption\n", + " \n", + " \n", + " " ] }, { @@ -298,10 +2379,7 @@ "execution_count": null, "metadata": {}, "outputs": [], - "source": [ - "# This will test your function \n", - "test_pangram(pangram)" - ] + "source": [] }, { "cell_type": "markdown", @@ -342,28 +2420,74 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 132, "metadata": {}, "outputs": [], "source": [ "def check_pass(string):\n", - " pass" + " special_characters = [\"#\",\"@\", \"!\", \"$\", \"%\", \"&\", \"(\",\")\", \"^\", \"*\", \"[\",\"]\", \"{\",\"}\"]\n", + " char=0\n", + " upp_c=0\n", + " low_c=0\n", + " num=0\n", + " spe_c=0\n", + " if len(string) >= 8:\n", + " char+=1\n", + " for i in string:\n", + " if i.isupper():\n", + " upp_c+=1 \n", + " if i.islower():\n", + " low_c+=1\n", + " if i.isdigit():\n", + " num+=1\n", + " if i in special_characters:\n", + " spe_c+=1\n", + " if char>0 and upp_c>0 and low_c>0 and num>0 and spe_c>0:\n", + " return True\n", + " else:\n", + " return False\n", + " else:\n", + " return False\n", + " \n", + " \n", + " \n", + " \n", + " " ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 133, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.066s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_pass(check_pass)" ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -377,7 +2501,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.6" + "version": "3.9.12" } }, "nbformat": 4, diff --git a/mod/__pycache__/testing.cpython-39.pyc b/mod/__pycache__/testing.cpython-39.pyc new file mode 100644 index 0000000..bd68c6b Binary files /dev/null and b/mod/__pycache__/testing.cpython-39.pyc differ