From e918876365653513fbe77be5d91f8b568b904a69 Mon Sep 17 00:00:00 2001 From: Nerea Larrachea Date: Thu, 6 Oct 2022 17:04:40 +0200 Subject: [PATCH 1/2] uploading first functions lab --- .ipynb_checkpoints/main-checkpoint.ipynb | 2559 ++++++++++++++++++++++ main.ipynb | 2307 ++++++++++++++++++- mod/__pycache__/testing.cpython-38.pyc | Bin 0 -> 13337 bytes 3 files changed, 4813 insertions(+), 53 deletions(-) create mode 100644 .ipynb_checkpoints/main-checkpoint.ipynb create mode 100644 mod/__pycache__/testing.cpython-38.pyc diff --git a/.ipynb_checkpoints/main-checkpoint.ipynb b/.ipynb_checkpoints/main-checkpoint.ipynb new file mode 100644 index 0000000..746c000 --- /dev/null +++ b/.ipynb_checkpoints/main-checkpoint.ipynb @@ -0,0 +1,2559 @@ +{ + "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": 1, + "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": 2, + "metadata": {}, + "outputs": [], + "source": [ + "def greater(a,b):\n", + " if a > b:\n", + " return a\n", + " else:\n", + " return b" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.199s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_greater(greater)" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "6" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "greater(4,6)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 2. Now write a function that returns the largest element on a list" + ] + }, + { + "cell_type": "code", + "execution_count": 59, + "metadata": {}, + "outputs": [], + "source": [ + "def greatest(lst):\n", + " lst.sort()\n", + " return lst[-1]" + ] + }, + { + "cell_type": "code", + "execution_count": 60, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.290s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_greatest(greatest)" + ] + }, + { + "cell_type": "code", + "execution_count": 61, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "None\n" + ] + } + ], + "source": [ + "lst = [2,6,7,8,67,89,43,67]\n", + "print(lst.sort())" + ] + }, + { + "cell_type": "code", + "execution_count": 62, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "89" + ] + }, + "execution_count": 62, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "greatest(lst)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 3. Write a function that sums all the elements on a list" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": {}, + "outputs": [], + "source": [ + "def sum_all(lst):\n", + " counter = 0\n", + " for num in lst: \n", + " counter += num\n", + " return counter" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.303s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_sum(sum_all)" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "289" + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "sum_all(lst)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## 4. Write another function that multiplies all the elements on a list" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": {}, + "outputs": [], + "source": [ + "def mult_all(lst):\n", + " product = 1\n", + " for num in lst: \n", + " product *= num\n", + " return product" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.229s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_mult(mult_all)" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "11544558816" + ] + }, + "execution_count": 16, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "mult_all(lst)" + ] + }, + { + "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": 65, + "metadata": {}, + "outputs": [], + "source": [ + "def oper_all(arr, oper = \"*\"):\n", + " if oper == \"+\":\n", + " return sum_all(arr)\n", + " else:\n", + " return mult_all(arr)" + ] + }, + { + "cell_type": "code", + "execution_count": 66, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "11544558816" + ] + }, + "execution_count": 66, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "oper_all(lst,\"*\")" + ] + }, + { + "cell_type": "code", + "execution_count": 67, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.326s\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": 22, + "metadata": {}, + "outputs": [], + "source": [ + "def factorial(n):\n", + " return 1 if (n==1 or n==0) else n * factorial(n - 1)" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.252s\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": 55, + "metadata": {}, + "outputs": [], + "source": [ + "def unique(lst_un):\n", + " unique_list = []\n", + " for i in lst_un:\n", + " if i not in unique_list:\n", + " unique_list.append(i)\n", + " for i in unique_list:\n", + " return unique_list" + ] + }, + { + "cell_type": "code", + "execution_count": 56, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[2, 6, 7, 8, 43, 67, 67, 89]" + ] + }, + "execution_count": 56, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "lst" + ] + }, + { + "cell_type": "code", + "execution_count": 57, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[2, 6, 7, 8, 43, 67, 89]" + ] + }, + "execution_count": 57, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "unique(lst)" + ] + }, + { + "cell_type": "code", + "execution_count": 58, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.464s\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": null, + "metadata": {}, + "outputs": [], + "source": [ + "def mode_counter(arr):\n", + " \n", + " pass" + ] + }, + { + "cell_type": "code", + "execution_count": 53, + "metadata": {}, + "outputs": [], + "source": [ + "def mode_counter(arr) :\n", + " m = max([arr.count(a) for a in arr])\n", + " return [x for x in arr if arr.count(x) == m][0] if m>1 else None" + ] + }, + { + "cell_type": "code", + "execution_count": 54, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.576s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_mode(mode_counter)" + ] + }, + { + "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": 43, + "metadata": {}, + "outputs": [], + "source": [ + "from statistics import stdev\n", + "def st_dev(list_sd):\n", + " mean = sum(list_sd) / len(list_sd)\n", + " variance = sum([((i - mean) ** 2) for i in list_sd]) / len(list_sd)\n", + " res = variance ** 0.5\n", + " return res" + ] + }, + { + "cell_type": "code", + "execution_count": 68, + "metadata": {}, + "outputs": [], + "source": [ + "def st_dev(list_sd):\n", + " return statistics.stdev(list_sd)" + ] + }, + { + "cell_type": "code", + "execution_count": 69, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.442s\n", + "\n", + "FAILED (errors=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": 79, + "metadata": {}, + "outputs": [], + "source": [ + "def pangram(string):\n", + " alphabet = \"abcdefghijklmnopqrstuvwxyz\"\n", + " for char in alphabet:\n", + " if char not in string.lower():\n", + " return False\n", + " return True " + ] + }, + { + "cell_type": "code", + "execution_count": 77, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "..............................\n", + "----------------------------------------------------------------------\n", + "Ran 30 tests in 0.058s\n", + "\n", + "OK\n" + ] + } + ], + "source": [ + "# This will test your function \n", + "test_pangram(pangram)" + ] + }, + { + "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": 80, + "metadata": {}, + "outputs": [], + "source": [ + "def sort_alpha(string):\n", + " return sorted(string, key = lambda x: x[0], reverse = False)" + ] + }, + { + "cell_type": "code", + "execution_count": 84, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[',', ',', 'a', 'a', 'c', 'e', 'l', 'l', 'l', 'o', 'r', 't', 'u', 'y']" + ] + }, + "execution_count": 84, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "a_string = \"call,you,later\"\n", + "sorted_characters = sorted(a_string)\n", + "sorted_characters" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": 81, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', 'a', 'a', 'a', 'c', [179 chars] 'z'] != 'gtlfooaslr,toiz,tpkthrvayf,wyoyroe,xuctrthaio' : Should be gtlfooaslr,toiz,tpkthrvayf,wyoyroe,xuctrthaio\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', 'a', 'b', 'b', 'c', 'c', [89 chars] 'x'] != 'basictu,cuxf,hfrolrvmk,lebc' : Should be basictu,cuxf,hfrolrvmk,lebc\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [559 chars] 'z'] != 'awjmoia,deukkgp,dfuqry,gpfclgzdou,jjhq,j[77 chars]mutd' : Should be awjmoia,deukkgp,dfuqry,gpfclgzdou,jjhq,jvziauvf,kslmwx,ljyvai,lryuiafks,ndedhsnv,pulz,puuxhmgzqw,qbifmidfj,rhbe,umkzqmutd\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [329 chars] 'z'] != 'exmkaecxzd,faqnpeu,gvfdg,jhamugtg,ndyhjh[31 chars]yeja' : Should be exmkaecxzd,faqnpeu,gvfdg,jhamugtg,ndyhjhgynu,pnpyov,rfjlyoh,rfnb,rgso,vyeja\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [754 chars] 'z'] != 'atyng,bwjddn,bwnclvnb,coyxjowp,cpuylriyn[116 chars]uyrl' : Should be atyng,bwjddn,bwnclvnb,coyxjowp,cpuylriyn,dnalybx,eirdb,ekjjly,ffifdchlv,grvfoqs,hbpoauuon,ijqr,jvcj,koxvare,onzevtwtpj,pnecw,qwavmq,snkeuzgyo,tbhp,utnfc,xdsuyrl\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [749 chars] 'z'] != 'buxxzyqmd,dfoothpcwk,dlmixw,fchteji,gyrg[115 chars]jtlk' : Should be buxxzyqmd,dfoothpcwk,dlmixw,fchteji,gyrgzom,hthwqyxjw,kgxzby,looohyb,modaqecn,mxxbfg,nfcjpbdco,okvd,qbfod,ravciwp,sbziqkbm,uhcjeaa,xfxau,yxpcpf,zbxkyp,zijjjtlk\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [814 chars] 'z'] != 'bygtduppd,dasxmw,difrjrzifv,dpbno,fojwbm[128 chars]uimr' : Should be bygtduppd,dasxmw,difrjrzifv,dpbno,fojwbmhkq,gsuatop,hhlekxo,ibtdwzgy,itwbp,obyipvx,pcbgkhexh,pxwowud,qbpacywiz,qhfrdmza,qrcb,ratphxih,vnmbqio,vprvtzyep,wbidua,ynaynbb,zuimr\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [559 chars] 'z'] != 'asmwvsr,bpmdqqzj,bxmja,dsib,enctixh,gpta[77 chars]qqnk' : Should be asmwvsr,bpmdqqzj,bxmja,dsib,enctixh,gptawdd,hvgayf,iivoyz,ketvmeax,oatj,pajbmjd,rbsmhpko,rexymg,rqpcpca,ybjl,yxnri,zxqqnk\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [374 chars] 'z'] != 'btqyxpvrf,cfgazzl,fyvxq,hsyzssvuvk,oujwf[40 chars]ohbr' : Should be btqyxpvrf,cfgazzl,fyvxq,hsyzssvuvk,oujwfpby,psuqgg,pvwzvzlqrt,txnivepa,vmxa,zphvohbr\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [929 chars] 'z'] != 'bhidfqipu,cbkhxeudi,dglhjt,dmahi,dmqypoy[151 chars]juzg' : Should be bhidfqipu,cbkhxeudi,dglhjt,dmahi,dmqypoye,dyimtpneu,fzolsn,glkfnxml,ikwqv,kfuygendm,lisridbb,mgkoq,naqun,ncmx,nljghxvrqs,opugs,orqz,srjhqyfw,tbsitq,twtoftykhc,vgnhsvhwz,wapfh,yeipvwni,yrvc,zqjuzg\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [449 chars] 'z'] != 'azzu,clsf,edndcn,fktg,gmdfjkil,jixu,lesx[55 chars]kjmx' : Should be azzu,clsf,edndcn,fktg,gmdfjkil,jixu,lesxd,lxoz,mjkuxglrpv,pvduj,qujkl,srqkgbwup,sxyhwrbt,vciyvxkjmx\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [714 chars] 'z'] != 'bedqrj,bxucpyw,cbgwsz,drblu,ehlk,ipeyklz[108 chars]fxsl' : Should be bedqrj,bxucpyw,cbgwsz,drblu,ehlk,ipeyklz,jqdjaewf,mgqkltvahe,ndmfcpg,odyesmhnmb,oyobiesuf,qzeifddnfc,tcjo,uenwtgga,uodywdd,vzuy,wwdqaro,ysokgt,yycibfxsl\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [364 chars] 'y'] != 'anseosscdd,ihyvwvglaq,kfwl,pbei,pjgxoau,[38 chars]dtsa' : Should be anseosscdd,ihyvwvglaq,kfwl,pbei,pjgxoau,qnstdaxiw,sdbephtfuk,ttlp,wunakihr,yhadtsa\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [709 chars] 'z'] != 'asuleb,ayvxllsu,fecujvfon,feyxdoszwa,fyo[107 chars]ztyp' : Should be asuleb,ayvxllsu,fecujvfon,feyxdoszwa,fyoyxljlo,jbwdnoks,kkxr,nmplxj,oyqbb,pazlnj,qxcnakr,rkddfle,rxygqwqo,sczl,usoedjwzfq,vfzicpmvby,wgwq,xntpv,yonztyp\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [439 chars] 'z'] != 'cmoxew,eoms,eozqptyn,guzeq,irkobgosg,jru[53 chars]zrhn' : Should be cmoxew,eoms,eozqptyn,guzeq,irkobgosg,jruveczm,lzxnow,nfrxgzj,ozpeb,spimmoifo,whbqe,wyktxagdy,zrhn\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', 'b', 'c', [209 chars] 'z'] != 'dtjvb,gliy,gocylnmhe,kyzntt,lpekvnm,rgecfomi,zfggqr' : Should be dtjvb,gliy,gocylnmhe,kyzntt,lpekvnm,rgecfomi,zfggqr\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [404 chars] 'z'] != 'cqbmxiiw,eaktdrvxty,fnfirydq,mhjn,myzpwu[46 chars]qtba' : Should be cqbmxiiw,eaktdrvxty,fnfirydq,mhjn,myzpwu,satksfvxgu,sfvkm,tidfjj,tuszxbhl,wotaz,yjvd,zqtba\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [494 chars] 'z'] != 'efys,esvjmcaf,ftjgxbob,hfqsxowtz,hifj,io[64 chars]lcil' : Should be efys,esvjmcaf,ftjgxbob,hfqsxowtz,hifj,ioyl,jjromkrbbn,oivc,rykcjhz,uedhwamtct,wfopi,yavb,ybnraqjvht,zjfqlcil\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [919 chars] 'z'] != 'clzijmj,eswmnefkbm,eurd,fkzf,gpjzg,hlxuy[149 chars]cxsg' : Should be clzijmj,eswmnefkbm,eurd,fkzf,gpjzg,hlxuyishr,imgcjphcsw,kbsajnfjod,ndqsmycim,nkpgfnj,ogazdwur,peuwnazm,qbrtdqcywa,qrrnjhll,rehnzcvku,ryokgu,satszzrd,svokndvzfn,ujskld,vgrrp,xowruumzr,zlgmqfcxsg\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [759 chars] 'z'] != 'anybi,bppcpz,hbuncvxz,jljbl,jpcrblrhb,kr[117 chars]fylm' : Should be anybi,bppcpz,hbuncvxz,jljbl,jpcrblrhb,krrtkb,limttkkj,mabtalsokn,myqow,opmfvdgyig,osxiqjn,povvsvur,qyueeuazw,qzbpq,spacovjs,txqnjbpze,tzavri,vbdtqrxlf,xsvbmwfylm\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'b', [209 chars] 'z'] != 'bmiwutnfvk,cfhrwj,elnzjam,eomtn,feyamsbg,nphnyyloyt' : Should be bmiwutnfvk,cfhrwj,elnzjam,eomtn,feyamsbg,nphnyyloyt\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [364 chars] 'z'] != 'ftxsnykz,isjte,kjteky,sctstq,skakh,syplr[38 chars]fgdf' : Should be ftxsnykz,isjte,kjteky,sctstq,skakh,syplrqiu,trzjelsn,ukjgtlqnx,xlnf,zejovbz,zxfgdf\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', 'b', 'b', 'b', 'c', 'e', [104 chars] 'y'] != 'bxsbmiucf,nlbh,ryqxye,ytjnhwil' : Should be bxsbmiucf,nlbh,ryqxye,ytjnhwil\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [274 chars] 'z'] != 'eceanuopq,fwelt,imiumjvf,izvgaj,kows,lxo[20 chars]xvpm' : Should be eceanuopq,fwelt,imiumjvf,izvgaj,kows,lxowsj,mgun,nawuladerl,xvpm\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', 'a', [284 chars] 'z'] != 'bdteuy,drfglmyl,ibxbreau,jwgyhmbm,oypzo,[22 chars]gjek' : Should be bdteuy,drfglmyl,ibxbreau,jwgyhmbm,oypzo,qaabvrvv,scefwktu,snekgjek\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'b', [174 chars] 'z'] != 'agqpkhl,gmuyintg,lhmxe,mmbzznp,oxar,sxonhxzw' : Should be agqpkhl,gmuyintg,lhmxe,mmbzznp,oxar,sxonhxzw\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [1014 chars] 'z'] != 'acxvavvfp,bqstfvbua,dzclrsaftc,fogzifp,f[168 chars]szpg' : Should be acxvavvfp,bqstfvbua,dzclrsaftc,fogzifp,fxmsai,jivbqmej,jtwtwi,jvyphl,jynmkmyr,jzncqps,kceurdn,khvobt,levhxcglil,ptlhaat,rxytbtgoz,shmbuqim,vdlgnzdw,vhevamy,vhufhu,vsojgiz,whqkqevdym,wpebcyozz,xelrcoiet,xvaflaszpg\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [449 chars] 'z'] != 'ahvjelx,bpuiirws,ccqrzdfb,dqgovdj,foivz,[55 chars]snxn' : Should be ahvjelx,bpuiirws,ccqrzdfb,dqgovdj,foivz,nzfighixla,qttdqifh,sankpufl,vlrhfpkl,wmrdi,wusajei,xwvsnxn\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', 'a', 'b', 'c', 'd', 'e', [104 chars] 'z'] != 'cwoq,iaplgelq,zdnwri,zmmtqsfpb' : Should be cwoq,iaplgelq,zdnwri,zmmtqsfpb\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [499 chars] 'z'] != 'asdbmphuf,bumvuksp,cauk,irvwgeaafv,jogba[65 chars]bjrk' : Should be asdbmphuf,bumvuksp,cauk,irvwgeaafv,jogba,jrglsrwz,lklpcsxa,mowpgxpl,mpznmq,qmeoqt,upytx,uudeyyw,weks,zxvcbjrk\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', 'a', 'c', 'c', 'd', [134 chars] 'z'] != 'qfzr,tddc,xpgafs,xxjiictxq,zlsrryisj' : Should be qfzr,tddc,xpgafs,xxjiictxq,zlsrryisj\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [944 chars] 'z'] != 'awvewha,cewasmja,cxubxqqk,ddsubz,evrgxmn[154 chars]fbmg' : Should be awvewha,cewasmja,cxubxqqk,ddsubz,evrgxmn,exegpjogqx,flfrj,fvfjryk,geuuxoecr,gkttuoef,hric,igoivk,jbfkzs,kiuxsyczo,kqgq,ljrknsbiu,lqyrcxz,nqjbc,ocezpp,omwx,pqsoez,rsgkcog,skcpfkg,sxvctnvnd,yzucpwfbmg\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [434 chars] 'z'] != 'aistpw,flba,gzvfdmez,ilejpg,ivxzggk,jbtz[52 chars]jdlc' : Should be aistpw,flba,gzvfdmez,ilejpg,ivxzggk,jbtzshpq,mbuajqk,pwoweou,rzzvb,tnrnm,ubiqc,ytkesqa,zbyyfjdlc\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'a', [214 chars] 'z'] != 'iispjtxrim,ilrjitqk,kuvmkzq,uhmaaznaq,vdrkql,xnuwgze' : Should be iispjtxrim,ilrjitqk,kuvmkzq,uhmaaznaq,vdrkql,xnuwgze\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [494 chars] 'z'] != 'cibbes,hmzcwly,hnve,hpmm,hsrmetsep,kyfwo[64 chars]nmga' : Should be cibbes,hmzcwly,hnve,hpmm,hsrmetsep,kyfwooecm,lwifsi,mfvm,mprdeoe,owanpw,pjrvl,pzygjbg,qwdyk,rnrxzx,tqxwsnmga\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [849 chars] 'z'] != 'bkme,cmsboniuu,fgmey,hbdjxlzxqg,hejkdgf,[135 chars]praz' : Should be bkme,cmsboniuu,fgmey,hbdjxlzxqg,hejkdgf,hqqjqaumb,hvoo,kmckhbt,lhfrlmv,lhlfjxnbla,ljpcwizu,mwnbvanpn,nmlm,ntusvysmx,ozenshmac,qbdfqjh,usaljotpvc,wabuyaqqhl,whwj,wkageuywnx,ygtpraz\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [739 chars] 'z'] != 'aqpef,azxg,banouslsoy,btdb,gmwximt,iffrg[113 chars]npdm' : Should be aqpef,azxg,banouslsoy,btdb,gmwximt,iffrgdvniu,jcrm,mmdjdqlrfl,mmyuamfoxy,ncruqreg,pdoyjrwe,quwtuejbh,togqbdwy,vcbxejucal,vyxshhgt,wdrokymj,xocxvxmtdj,yrvnpdm\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [474 chars] 'z'] != 'bumzboy,cenersuxcr,eqlpududz,gorw,heqlhb[60 chars]tode' : Should be bumzboy,cenersuxcr,eqlpududz,gorw,heqlhbbcam,lqwgddnh,rzpnmqxwu,snlbgayhsf,sunhrymo,tllbgbf,vclhe,vxtode\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [464 chars] 'z'] != 'bbfqwn,hifvn,hykwfahghd,moduh,nzsvhovmh,[58 chars]tcga' : Should be bbfqwn,hifvn,hykwfahghd,moduh,nzsvhovmh,olmr,oujuwv,qcsebdm,seeeabg,sreqprbb,tlgftyvs,xghbkgt,ymowtcga\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'b', 'b', [244 chars] 'z'] != 'kiyosnybb,lzgdlfdrsk,oyjdvutdg,shwzivs,v[14 chars]gznc' : Should be kiyosnybb,lzgdlfdrsk,oyjdvutdg,shwzivs,vwgalgvy,xvspgrgznc\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [799 chars] 'z'] != 'aojy,bttyictb,coshk,ghgy,imfjjgdjg,imkdw[125 chars]yrjm' : Should be aojy,bttyictb,coshk,ghgy,imfjjgdjg,imkdwpw,jbojai,kopfrpqbuh,kqbqk,ktmmodfra,mkix,mnecw,njhixm,njywcos,obdyofomor,okvqkp,olfrkft,otxvxqu,pcfqcgk,uzbruserp,wtjlqdhqo,yrjm\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [604 chars] 'z'] != 'dsiietj,ewtqbiyqd,fmfurwme,hwir,ihtmvjnx[86 chars]yxml' : Should be dsiietj,ewtqbiyqd,fmfurwme,hwir,ihtmvjnxd,jkeni,luwwmnt,ojpyyzi,osjwe,qizzrplxft,qpapblaufd,qtcuhx,tkovezvejb,vajgd,yikfnsfal,yxml\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [419 chars] 'z'] != 'alsmzvsco,fbibitqu,gdnbxypxl,kpfpbwex,kt[49 chars]vydy' : Should be alsmzvsco,fbibitqu,gdnbxypxl,kpfpbwex,ktvgmsevi,ojznudol,olzs,qnidkckffg,qyltjxts,vgclbn,vydy\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [689 chars] 'z'] != 'bdkngg,eoyolbmu,ewihcgkmi,eybjl,gcjikjrk[103 chars]zchu' : Should be bdkngg,eoyolbmu,ewihcgkmi,eybjl,gcjikjrk,hjmdfxymff,itwqelb,junbc,peeukozp,puerbymo,qbkxfyal,rkjiaea,saty,yqvmu,ywwopcpfil,zhhnw,zregdqtcn,zujfzchu\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [789 chars] 'z'] != 'bnfqcxsqsi,cadcsp,dryj,dtewvnn,hrnar,inc[123 chars]zkog' : Should be bnfqcxsqsi,cadcsp,dryj,dtewvnn,hrnar,inckirg,iwgixj,jpbithfp,jslyeiwzd,kwfuagzrq,lzgeeb,mrerhirj,mtjnrvwz,ocxaaii,pesrip,pwdnuw,vjjngl,wclki,wjhbbclt,xlflgekhh,zemzkog\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [644 chars] 'z'] != 'accbw,akesytgs,brtoyek,diskmy,ecfnqsv,gj[94 chars]lxsb' : Should be accbw,akesytgs,brtoyek,diskmy,ecfnqsv,gjhaeogx,jlfi,kwhgwthdt,lczqbf,obukwhe,qywynnojg,spfqarlfc,sydsysvynw,tikrgl,xhpmia,yvosr,zvfpxglxsb\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [599 chars] 'z'] != 'cqdaxyk,dgvyonv,dtjk,huhpnwc,jbpsskraqj,[85 chars]kxzs' : Should be cqdaxyk,dgvyonv,dtjk,huhpnwc,jbpsskraqj,kvrell,ltvidtt,mfwa,pbfaazxc,qiggyzjsuo,rsfxrgj,rvwwzhsro,vbiwwiws,vwbdvnfo,zpcklr,zvkxzs\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [459 chars] 'z'] != 'akbfnjzp,duoai,ffstd,gkdkudv,hvtlxuym,iv[57 chars]zohb' : Should be akbfnjzp,duoai,ffstd,gkdkudv,hvtlxuym,ivupqaymnb,jwjxzv,mpbmydve,nvlxqyfeqr,owcl,pmdnb,xhhevu,yzjzohb\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [879 chars] 'z'] != 'asou,bdzskfjzvp,dwhp,ebzoid,eicugvdpkj,e[141 chars]ixjd' : Should be asou,bdzskfjzvp,dwhp,ebzoid,eicugvdpkj,eyclxcfvt,fboquvwz,finzn,jmghdwcxu,jxutsc,kzsuanags,lcrupbkf,ltzpit,qideyqm,qqfgeyepn,rnexhro,tlwaruujvn,vevu,vndmnkot,xbtmaf,xpxtyuflio,zogycixjd\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [809 chars] 'z'] != 'bbzyk,ckvztvpqhy,cnlmzgg,cwxmiol,edhxwwa[127 chars]ybge' : Should be bbzyk,ckvztvpqhy,cnlmzgg,cwxmiol,edhxwwajh,eexpngfq,eydwdzosql,grxgfreii,gunzbehfdd,jlullm,njijopvp,otrsvg,qnhwyxhhc,qnucb,qzmblzo,rfrpj,wcmwrdhc,xunejkbuom,yqvmc,ysyzybge\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [299 chars] 'z'] != 'apicwwakwa,biydukty,dpgchpg,msxueoru,nfn[25 chars]aimt' : Should be apicwwakwa,biydukty,dpgchpg,msxueoru,nfnj,qtul,uygan,xcuxzz,zuofoaimt\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', 'b', 'd', 'e', 'e', [159 chars] 'z'] != 'evyxjjzp,fxuo,krqginwlm,thbhyzt,zemekzttd' : Should be evyxjjzp,fxuo,krqginwlm,thbhyzt,zemekzttd\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', 'a', 'a', 'b', 'b', 'c', [129 chars] 'z'] != 'gaveerj,pwmcgzvbmn,rptgqouaw,vkbqrk' : Should be gaveerj,pwmcgzvbmn,rptgqouaw,vkbqrk\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', 'a', 'b', 'b', 'b', 'b', [99 chars] 'z'] != 'axncboute,eznb,kyhb,llnbshitf' : Should be axncboute,eznb,kyhb,llnbshitf\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [294 chars] 'z'] != 'aguxfwzcm,dcidw,fikdq,gbspusp,hmolh,krvk[24 chars]yptk' : Should be aguxfwzcm,dcidw,fikdq,gbspusp,hmolh,krvkn,mdmlpsir,mowlld,ruwvsqyptk\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [699 chars] 'z'] != 'afvtbacihp,ajdjfl,cspfzq,egdiwr,iijh,iwm[105 chars]soip' : Should be afvtbacihp,ajdjfl,cspfzq,egdiwr,iijh,iwmvxucsx,iyzo,jhxnlr,mioagfthv,mttyoioh,nqurvrjyje,rrlsmmi,uglf,unnjzatyrc,vdwsopijlk,xcqyp,xqmwccps,zfcvfpsoip\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'a', [194 chars] 'z'] != 'afjatz,gygsts,mjpwjvy,qyeeadeus,uvptx,wpmtvkxgkh' : Should be afjatz,gygsts,mjpwjvy,qyeeadeus,uvptx,wpmtvkxgkh\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [564 chars] 'z'] != 'ceoyvjvqx,cjyxixldo,emsqse,enycdzm,eqjzs[78 chars]wcrz' : Should be ceoyvjvqx,cjyxixldo,emsqse,enycdzm,eqjzsufjow,jwfdoaplb,kjqanthb,korli,olqkwqn,shnepj,tdkrcdp,tilyehuaqo,vznjcjvhww,yswcrz\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [744 chars] 'z'] != 'ajzzsu,awofkuujdg,dfqgcyxgc,exiqf,ezuj,h[114 chars]yrxl' : Should be ajzzsu,awofkuujdg,dfqgcyxgc,exiqf,ezuj,hukyopoer,idjhdchrwo,jwdfigvzz,kcwd,khxsvsz,kwakvfd,nvimopjvu,rrlglmo,trpplqhj,uhmlp,ujfhpie,xqzqj,xqzrd,yqkmkiqvn,yrxl\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', 'a', [274 chars] 'z'] != 'ifuq,okoeaozapy,qddhhhtb,sxemqsdvp,urwtp[20 chars]wsot' : Should be ifuq,okoeaozapy,qddhhhtb,sxemqsdvp,urwtpqc,vzpjy,wfituio,xnawsot\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [374 chars] 'z'] != 'bbqgznpl,ftbvqbqe,hbpstlh,lvtgalcmm,poyb[40 chars]yhsm' : Should be bbqgznpl,ftbvqbqe,hbpstlh,lvtgalcmm,poybfhzj,terxdid,uieod,wbwdzz,xxdcxcyqrl,zzayhsm\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [764 chars] 'z'] != 'akoaqngawy,ayvqw,cascws,eibb,gtcj,hhjnbr[118 chars]izno' : Should be akoaqngawy,ayvqw,cascws,eibb,gtcj,hhjnbrfjjl,hmxoxs,ijhl,jqpog,jxnd,kgxuclf,mfohjjo,njmbwpe,nrtllbumd,phwqk,qingwflzde,svycgdo,tmtztdpjr,ukyhfdap,vhdrevkd,ydzizno\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [594 chars] 'z'] != 'bannda,bqfpe,dybieur,fhnh,huvu,ieuefmy,i[84 chars]zwdv' : Should be bannda,bqfpe,dybieur,fhnh,huvu,ieuefmy,ighxdqoww,kpunh,lymftrtc,miuddungz,nxaq,pgosgjl,pqnvvucnp,thgvsbxigf,vmvpl,zfgibphe,zzwdv\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [474 chars] 'z'] != 'bnoswzj,clxllgsaa,cmnpxkn,epfbridiv,hsgn[60 chars]dkts' : Should be bnoswzj,clxllgsaa,cmnpxkn,epfbridiv,hsgn,lojkl,lxcffzp,mjsrdirbgt,sjzgryh,srvvla,vvhfkkv,xigvooa,xiudkts\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [479 chars] 'z'] != 'cmbnbtvm,cwdhncmi,icygtcdql,ioahntdr,nfq[61 chars]lftr' : Should be cmbnbtvm,cwdhncmi,icygtcdql,ioahntdr,nfqhd,nkzz,npwpvehea,peieljbyml,rzijb,vfunu,vvbczj,xdovntvoi,yawlftr\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', 'a', 'a', [269 chars] 'z'] != 'eomqg,fdqw,pzzgkuibtm,uedwvaixnx,ugsffei[19 chars]rqey' : Should be eomqg,fdqw,pzzgkuibtm,uedwvaixnx,ugsffeilbc,uonptcsbay,ywglrqey\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [844 chars] 'z'] != 'gemimxs,heqzr,iqbo,jstof,jwvvwfm,khkqact[134 chars]tizm' : Should be gemimxs,heqzr,iqbo,jstof,jwvvwfm,khkqactbkw,lapv,lbwdz,lsduk,oixo,qaqhgoyaby,snxg,szitrvjhfc,tserwflzw,tylvfb,uledf,uoinzjiep,wztuabvtj,xbybonjb,xnheaf,xrckjypt,zoffriuqwp,zxtizm\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [569 chars] 'z'] != 'aonhjp,dhubzwsrr,fwhstxr,huitomz,jhudujd[79 chars]wmft' : Should be aonhjp,dhubzwsrr,fwhstxr,huitomz,jhudujdkx,kodvl,mjrwbcqvb,moruiubz,osvfuwuvd,tldphdql,wpsm,xvqfexqim,zghrdnacrk,zlyrvpwmft\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'a', [189 chars] 'z'] != 'gbbtod,gzpejcpcnn,lahp,tjawyeohxx,twydlx,wcarmj' : Should be gbbtod,gzpejcpcnn,lahp,tjawyeohxx,twydlx,wcarmj\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [514 chars] 'z'] != 'acnvfj,cvpfqpu,diyyr,dlpgyeq,edocfzqy,hq[68 chars]ozqg' : Should be acnvfj,cvpfqpu,diyyr,dlpgyeq,edocfzqy,hqbybbm,iyzourq,lyvbvjbzml,ofvktm,skxqoplqd,ssmo,suymxkykx,wgmnkeyf,wyozqg\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'd', [234 chars] 'z'] != 'ajtvfxvgrd,aljhtwdmnl,leeyglnepw,rjjj,xgwfkfm,ytmminzmfq' : Should be ajtvfxvgrd,aljhtwdmnl,leeyglnepw,rjjj,xgwfkfm,ytmminzmfq\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [659 chars] 'z'] != 'cgejxpt,ckxfqax,dqmqavmhl,eulls,fjdyudvh[97 chars]xssq' : Should be cgejxpt,ckxfqax,dqmqavmhl,eulls,fjdyudvhjz,fztvy,hyrnqjembo,meyxlcewf,muxonxy,pswucoivz,pvyvahpry,rpqmil,rxotlwrvjj,ryba,wpllzqahbd,xetz,xssq\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [654 chars] 'z'] != 'dtsdry,edvtcojmgl,enrkxyhpi,fpudhdxrlm,f[96 chars]pyau' : Should be dtsdry,edvtcojmgl,enrkxyhpi,fpudhdxrlm,fzwuyajmkt,gecskvrzm,jfopjbank,jwwjkuxsd,kderyxh,nvtxcg,pahurtpvx,qfmympxcg,rzbnrhv,wijmfzdek,zespyau\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [1079 chars] 'z'] != 'chwgiskltq,cqzoqzo,dldhrtykbh,dpmszejdfx[181 chars]rcdq' : Should be chwgiskltq,cqzoqzo,dldhrtykbh,dpmszejdfx,eeogeh,elmoakpc,eqpgsprr,fwuuoeignk,gpedzkigho,kmrbuditvg,lpfkiag,lsuulvctap,nagtuus,nfjgikhj,nuzaquagi,ouwamiypp,qixqmky,qstpzt,rfglbbtxbg,sxafkthom,tphqiw,twopuizbxj,ubqejtd,zyforcdq\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [914 chars] 'z'] != 'alxqpse,blukjspebb,eoxhjytp,esbpgtyq,etn[148 chars]undf' : Should be alxqpse,blukjspebb,eoxhjytp,esbpgtyq,etnlec,fffwe,gwxcaon,ixcsesxs,jehtkbdq,jpguij,nabkvwebz,nopaqv,oawen,pfkauules,psnw,qufvfmgb,ranhgtjpgc,rvwn,sblprzgy,tqdvu,tzbiv,uolfuvzb,uqfcdholk,vfundf\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [264 chars] 'z'] != 'cncdx,irbuojw,nudpw,qnwzkx,rifhsdik,rpar[18 chars]jfgs' : Should be cncdx,irbuojw,nudpw,qnwzkx,rifhsdik,rpartx,tjlo,wbmmpeha,xjfgs\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', 'a', [264 chars] 'z'] != 'epxu,keqtcb,kyalwkfwto,lcdnjav,omhpyjkpw[18 chars]bhmx' : Should be epxu,keqtcb,kyalwkfwto,lcdnjav,omhpyjkpw,ppkxc,vqueolaw,zcbhmx\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'e', 'e', [159 chars] 'z'] != 'nakel,prltl,qvvqusg,uerhylx,volxpeh,vznlf' : Should be nakel,prltl,qvvqusg,uerhylx,volxpeh,vznlf\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', 'b', 'd', 'e', 'f', [124 chars] 'y'] != 'dtqvjq,eutqk,fpprjpt,jnjrqtjy,nibv' : Should be dtqvjq,eutqk,fpprjpt,jnjrqtjy,nibv\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [439 chars] 'z'] != 'bhxgg,fxokoe,hcgvyj,ijzxfaw,itthl,kowyyh[53 chars]todz' : Should be bhxgg,fxokoe,hcgvyj,ijzxfaw,itthl,kowyyh,qshd,qtoz,ublcyhaov,usfgiq,vlbhljmw,vyutptzq,wdzy,xotodz\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [384 chars] 'z'] != 'ccrb,dhazeptamx,jttri,kmob,migsdjxr,mknz[42 chars]qdlv' : Should be ccrb,dhazeptamx,jttri,kmob,migsdjxr,mknzcssf,mtpwpdd,nzslaw,qfxpdces,qqqneo,sijlnsqdlv\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', 'a', 'a', [244 chars] 'z'] != 'aehztarh,fpvfbqso,lzife,qpvakivjap,syked[14 chars]vsmw' : Should be aehztarh,fpvfbqso,lzife,qpvakivjap,sykedxzofs,vocqfqh,vsmw\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [439 chars] 'z'] != 'bfkhmlpom,boin,clpoffgjb,dcqexfj,dloxj,h[53 chars]bnem' : Should be bfkhmlpom,boin,clpoffgjb,dcqexfj,dloxj,hyvrcswel,maxbk,omumahgqx,peaf,pjpobhzrp,svit,tmao,xhpbnem\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [864 chars] 'z'] != 'bgrkrb,bnlzdy,buqdemigmx,cdnttpwy,cfkf,e[138 chars]hucp' : Should be bgrkrb,bnlzdy,buqdemigmx,cdnttpwy,cfkf,estbyjurcl,eutbmckqe,gmotbxuje,guiajnnw,iplatwv,lteyqs,mnalwhfq,nbgdhb,pedtshzwza,poyjgqnfur,qufp,thxhtskuh,uaxe,uudeeh,uvcp,vtvnk,wlfbdn,xhucp\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', 'a', 'b', 'c', 'c', 'c', [114 chars] 'z'] != 'dzbdpncndm,edatunjcf,ljchw,yszmv' : Should be dzbdpncndm,edatunjcf,ljchw,yszmv\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [984 chars] 'z'] != 'aeuefx,bjai,dfncpkrki,dlcl,grug,hbhgney,[162 chars]snkh' : Should be aeuefx,bjai,dfncpkrki,dlcl,grug,hbhgney,ibulc,iclxipstu,ieccwtag,jczsbarz,jiboarp,mgefectir,miihznuxc,ndegdbodp,qmesmumwi,rjeabmgtqf,rztgsuuvr,shmtftkog,sjovaxivtg,smuppku,tihaaxre,wtrizm,xuzlsff,zalmigsnkh\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'b', 'c', [194 chars] 'y'] != 'hdmdso,hpeesjwjl,qjbywh,tymevcqmc,yirgqa,yscermj' : Should be hdmdso,hpeesjwjl,qjbywh,tymevcqmc,yirgqa,yscermj\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [384 chars] 'z'] != 'crshxz,ecsihe,fpydeuh,oapkapxuqg,okgtbyp[42 chars]wuan' : Should be crshxz,ecsihe,fpydeuh,oapkapxuqg,okgtbypupk,patcobz,pzqrdouul,qcvkgwh,rygavhgrpq,vwuan\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [664 chars] 'z'] != 'autxaiyfq,ccpegikvti,czdwjj,gagedtggbl,g[98 chars]yuwq' : Should be autxaiyfq,ccpegikvti,czdwjj,gagedtggbl,gfyswk,gwrksyjaa,ijanljm,ityrl,mkuqc,mwddujalt,opklsq,plngtn,pvygzr,veogomg,xsbtmwdiyl,xtcptv,yknqqyuwq\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [844 chars] 'z'] != 'afghtybh,byslggxe,dnduk,dzbdq,ficwwwnsw,[134 chars]ycyx' : Should be afghtybh,byslggxe,dnduk,dzbdq,ficwwwnsw,gaxs,kzutfp,mazzdtqve,mkjnkuixah,mojjehpnkb,nppmwggwo,pbikealt,pbzl,pgkf,qvzsdpwld,twilepsi,uupkkggln,vemhlwdvq,wggbpeowpm,wsygnccmqp,ycyx\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [399 chars] 'z'] != 'aeskkx,cdxohlgmea,ioow,jzfl,kznitlwbm,mg[45 chars]dfrt' : Should be aeskkx,cdxohlgmea,ioow,jzfl,kznitlwbm,mgapliljax,nkdguefnu,pmzrchhdhe,tyfnjlyvq,vcsfhdfrt\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [644 chars] 'z'] != 'bfamylpi,bscdj,cznoqlaj,dtnmrzeb,ezea,ff[94 chars]xobz' : Should be bfamylpi,bscdj,cznoqlaj,dtnmrzeb,ezea,ffdcul,gvebep,hlyzath,jcpmzb,lnpdtrcrb,ndnc,pxhdort,rurkuuqs,spbs,uficmz,vrzcceygna,wxuxumnnbo,zxobz\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [759 chars] 'z'] != 'dorkax,dsomltx,fejp,govkuoj,gxatxer,ikda[117 chars]dwsm' : Should be dorkax,dsomltx,fejp,govkuoj,gxatxer,ikdadcxmc,mlhheo,oaby,ogfsjllxl,oofpcmnwq,pofqgq,rqkgk,tetk,tuzsj,tvprre,ubkcnmy,veqeppvm,vupzwped,wlpmyie,wqbwxmke,zapoqdwsm\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [939 chars] 'z'] != 'cnzcvis,dyvxhoym,ehcklwdw,ixqez,jehotyc,[153 chars]fxbq' : Should be cnzcvis,dyvxhoym,ehcklwdw,ixqez,jehotyc,jhacydmyq,liicvpkpka,motob,nghri,nwzdcq,ppvhkcww,qfddhyl,qowqlznmzp,rpqpobtcqg,snvynjlhg,tdhkrrfy,uvpjltejcr,vxglferku,wtag,xbhjya,xutjtvvdx,zanacc,zswawfxbq\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'b', 'b', 'c', [164 chars] 'z'] != 'bvbmzvl,frjfywzlo,hpgdp,jlgjzc,ydwe,zoilzy' : Should be bvbmzvl,frjfywzlo,hpgdp,jlgjzc,ydwe,zoilzy\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [394 chars] 'z'] != 'abdwdst,aphvjbf,bxwm,fddngvcrv,morbkzfh,[44 chars]wpou' : Should be abdwdst,aphvjbf,bxwm,fddngvcrv,morbkzfh,mvtegn,nusxu,phpcn,rmucm,uvxonug,vdeqvzdpgg,wpou\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [354 chars] 'z'] != 'cakdvenfuv,gnbgpjmkxn,guenoyenit,jdbzuj,[36 chars]fofh' : Should be cakdvenfuv,gnbgpjmkxn,guenoyenit,jdbzuj,kdcuvf,osjk,thmlhze,xfjpmkjki,znlsqhfofh\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [904 chars] 'z'] != 'ahjiodfgmk,bvwrvdoxl,cbvsfknp,dvaficgih,[146 chars]tyjz' : Should be ahjiodfgmk,bvwrvdoxl,cbvsfknp,dvaficgih,etfgzovfp,jbttixv,jdwgky,kovjwhpkf,kpujv,lemw,lfchvfgj,mtypifa,nyulentpqy,ootyni,pdvru,perykfyw,qyfkpn,rpqbtg,uhbpuhedqv,uikzhzj,xagng,xbyorbaz,zrtyjz\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [679 chars] 'z'] != 'bmtjn,dhuydtza,ecgknm,eibfjo,ejwg,fwml,i[101 chars]wnsi' : Should be bmtjn,dhuydtza,ecgknm,eibfjo,ejwg,fwml,ipvome,iucf,lgefpf,lhfpmn,muexgthfs,ofkggmx,ohqnvtn,spwyk,ubtrqqyha,wbglwwbl,yudmdhpm,zbqsuobynl,zunmjwnsi\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'b', 'b', [209 chars] 'y'] != 'axdixipb,lhky,nsjqdjco,ofoniovkp,rkbquosbrc,xceoubi' : Should be axdixipb,lhky,nsjqdjco,ofoniovkp,rkbquosbrc,xceoubi\n", + "\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.338s\n", + "\n", + "FAILED (failures=100)\n" + ] + } + ], + "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": null, + "metadata": {}, + "outputs": [], + "source": [ + "def check_pass(string):\n", + " pass" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "# This will test your function \n", + "test_pass(check_pass)" + ] + } + ], + "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.8.13" + } + }, + "nbformat": 4, + "nbformat_minor": 4 +} diff --git a/main.ipynb b/main.ipynb index 73f285a..f639aa3 100644 --- a/main.ipynb +++ b/main.ipynb @@ -20,7 +20,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -37,24 +37,59 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "def greater(a,b):\n", - " pass" + " if a > b:\n", + " return a\n", + " else:\n", + " return b" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.199s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_greater(greater)" ] }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "6" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "greater(4,6)" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -64,24 +99,79 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 59, "metadata": {}, "outputs": [], "source": [ - "def greatest(arr):\n", - " pass" + "def greatest(lst):\n", + " lst.sort()\n", + " return lst[-1]" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 60, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.290s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_greatest(greatest)" ] }, + { + "cell_type": "code", + "execution_count": 61, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "None\n" + ] + } + ], + "source": [ + "lst = [2,6,7,8,67,89,43,67]\n", + "print(lst.sort())" + ] + }, + { + "cell_type": "code", + "execution_count": 62, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "89" + ] + }, + "execution_count": 62, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "greatest(lst)" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -91,24 +181,61 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 19, "metadata": {}, "outputs": [], "source": [ - "def sum_all(arr):\n", - " pass" + "def sum_all(lst):\n", + " counter = 0\n", + " for num in lst: \n", + " counter += num\n", + " return counter" ] }, { "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], + "execution_count": 20, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.303s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_sum(sum_all)" ] }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "289" + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "sum_all(lst)" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -118,24 +245,61 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 14, "metadata": {}, "outputs": [], "source": [ - "def mult_all(arr):\n", - " pass" + "def mult_all(lst):\n", + " product = 1\n", + " for num in lst: \n", + " product *= num\n", + " return product" ] }, { "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], + "execution_count": 15, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.229s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_mult(mult_all)" ] }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "11544558816" + ] + }, + "execution_count": 16, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "mult_all(lst)" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -145,19 +309,54 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 65, "metadata": {}, "outputs": [], "source": [ - "def oper_all(arr, oper):\n", - " pass" + "def oper_all(arr, oper = \"*\"):\n", + " if oper == \"+\":\n", + " return sum_all(arr)\n", + " else:\n", + " return mult_all(arr)" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 66, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "11544558816" + ] + }, + "execution_count": 66, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "oper_all(lst,\"*\")" + ] + }, + { + "cell_type": "code", + "execution_count": 67, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.326s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_operations(oper_all)" @@ -172,19 +371,31 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 22, "metadata": {}, "outputs": [], "source": [ "def factorial(n):\n", - " pass" + " return 1 if (n==1 or n==0) else n * factorial(n - 1)" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 23, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.252s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_factorial(factorial)" @@ -201,19 +412,76 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 55, "metadata": {}, "outputs": [], "source": [ - "def unique(arr):\n", - " pass" + "def unique(lst_un):\n", + " unique_list = []\n", + " for i in lst_un:\n", + " if i not in unique_list:\n", + " unique_list.append(i)\n", + " for i in unique_list:\n", + " return unique_list" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 56, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "[2, 6, 7, 8, 43, 67, 67, 89]" + ] + }, + "execution_count": 56, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "lst" + ] + }, + { + "cell_type": "code", + "execution_count": 57, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[2, 6, 7, 8, 43, 67, 89]" + ] + }, + "execution_count": 57, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "unique(lst)" + ] + }, + { + "cell_type": "code", + "execution_count": 58, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.464s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_unique(unique)" @@ -229,19 +497,55 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 86, "metadata": {}, "outputs": [], "source": [ "def mode_counter(arr):\n", - " pass" + " import operator\n", + " counter_of_i = {}\n", + " \n", + " for i in arr:\n", + " if i not in counter_of_i:\n", + " counter_of_i[i] = 1\n", + " else: # i in list\n", + " counter_of_i[i] += 1\n", + " \n", + " sorted_mydict = dict(sorted(counter_of_i.items(), key=operator.itemgetter(1), reverse = True))\n", + " \n", + " for key, value in counter_of_i.items():\n", + " if value == list(sorted_mydict.values())[0]:\n", + " return key" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 53, "metadata": {}, "outputs": [], + "source": [ + "def mode_counter(arr) :\n", + " m = max([arr.count(a) for a in arr])\n", + " return [x for x in arr if arr.count(x) == m][0] if m>1 else None" + ] + }, + { + "cell_type": "code", + "execution_count": 87, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.320s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_mode(mode_counter)" @@ -257,20 +561,1045 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 43, "metadata": {}, "outputs": [], "source": [ "from statistics import stdev\n", - "def st_dev(arr):\n", - " pass" + "def st_dev(list_sd):\n", + " mean = sum(list_sd) / len(list_sd)\n", + " variance = sum([((i - mean) ** 2) for i in list_sd]) / len(list_sd)\n", + " res = variance ** 0.5\n", + " return res" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 68, "metadata": {}, "outputs": [], + "source": [ + "def st_dev(list_sd):\n", + " return statistics.stdev(list_sd)" + ] + }, + { + "cell_type": "code", + "execution_count": 69, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_stdev..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 142, in runTest\n", + " self.assertAlmostEqual(fn(self.input), self.output, delta=5, msg=f\"Should be {self.output}\")\n", + " File \"/var/folders/dj/6p4w_3415gd7vr_k5c0wjgjc0000gn/T/ipykernel_42460/1490405141.py\", line 2, in st_dev\n", + " return statistics.stdev(list_sd)\n", + "NameError: name 'statistics' is not defined\n", + "\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.442s\n", + "\n", + "FAILED (errors=100)\n" + ] + } + ], "source": [ "# This will test your function \n", "test_stdev(st_dev)" @@ -285,19 +1614,35 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 79, "metadata": {}, "outputs": [], "source": [ "def pangram(string):\n", - " pass" + " alphabet = \"abcdefghijklmnopqrstuvwxyz\"\n", + " for char in alphabet:\n", + " if char not in string.lower():\n", + " return False\n", + " return True " ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 77, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "..............................\n", + "----------------------------------------------------------------------\n", + "Ran 30 tests in 0.058s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_pangram(pangram)" @@ -314,19 +1659,875 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 80, "metadata": {}, "outputs": [], "source": [ "def sort_alpha(string):\n", - " pass" + " # yo sólo quiero acomodar alfabéticamente la primera letra después de cada paréntesis\n", + " \n", + " return sorted(string, key = lambda x: x[0], reverse = False)" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 84, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "[',', ',', 'a', 'a', 'c', 'e', 'l', 'l', 'l', 'o', 'r', 't', 'u', 'y']" + ] + }, + "execution_count": 84, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "a_string = \"call,you,later\"\n", + "sorted_characters = sorted(a_string)\n", + "sorted_characters" + ] + }, + { + "cell_type": "code", + "execution_count": 85, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[',', ',', 'a', 'a', 'c', 'e', 'l', 'l', 'l', 'o', 'r', 't', 'u', 'y']" + ] + }, + "execution_count": 85, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "sort_alpha(a_string)" + ] + }, + { + "cell_type": "code", + "execution_count": 81, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', 'a', 'a', 'a', 'c', [179 chars] 'z'] != 'gtlfooaslr,toiz,tpkthrvayf,wyoyroe,xuctrthaio' : Should be gtlfooaslr,toiz,tpkthrvayf,wyoyroe,xuctrthaio\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', 'a', 'b', 'b', 'c', 'c', [89 chars] 'x'] != 'basictu,cuxf,hfrolrvmk,lebc' : Should be basictu,cuxf,hfrolrvmk,lebc\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [559 chars] 'z'] != 'awjmoia,deukkgp,dfuqry,gpfclgzdou,jjhq,j[77 chars]mutd' : Should be awjmoia,deukkgp,dfuqry,gpfclgzdou,jjhq,jvziauvf,kslmwx,ljyvai,lryuiafks,ndedhsnv,pulz,puuxhmgzqw,qbifmidfj,rhbe,umkzqmutd\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [329 chars] 'z'] != 'exmkaecxzd,faqnpeu,gvfdg,jhamugtg,ndyhjh[31 chars]yeja' : Should be exmkaecxzd,faqnpeu,gvfdg,jhamugtg,ndyhjhgynu,pnpyov,rfjlyoh,rfnb,rgso,vyeja\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [754 chars] 'z'] != 'atyng,bwjddn,bwnclvnb,coyxjowp,cpuylriyn[116 chars]uyrl' : Should be atyng,bwjddn,bwnclvnb,coyxjowp,cpuylriyn,dnalybx,eirdb,ekjjly,ffifdchlv,grvfoqs,hbpoauuon,ijqr,jvcj,koxvare,onzevtwtpj,pnecw,qwavmq,snkeuzgyo,tbhp,utnfc,xdsuyrl\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [749 chars] 'z'] != 'buxxzyqmd,dfoothpcwk,dlmixw,fchteji,gyrg[115 chars]jtlk' : Should be buxxzyqmd,dfoothpcwk,dlmixw,fchteji,gyrgzom,hthwqyxjw,kgxzby,looohyb,modaqecn,mxxbfg,nfcjpbdco,okvd,qbfod,ravciwp,sbziqkbm,uhcjeaa,xfxau,yxpcpf,zbxkyp,zijjjtlk\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [814 chars] 'z'] != 'bygtduppd,dasxmw,difrjrzifv,dpbno,fojwbm[128 chars]uimr' : Should be bygtduppd,dasxmw,difrjrzifv,dpbno,fojwbmhkq,gsuatop,hhlekxo,ibtdwzgy,itwbp,obyipvx,pcbgkhexh,pxwowud,qbpacywiz,qhfrdmza,qrcb,ratphxih,vnmbqio,vprvtzyep,wbidua,ynaynbb,zuimr\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [559 chars] 'z'] != 'asmwvsr,bpmdqqzj,bxmja,dsib,enctixh,gpta[77 chars]qqnk' : Should be asmwvsr,bpmdqqzj,bxmja,dsib,enctixh,gptawdd,hvgayf,iivoyz,ketvmeax,oatj,pajbmjd,rbsmhpko,rexymg,rqpcpca,ybjl,yxnri,zxqqnk\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [374 chars] 'z'] != 'btqyxpvrf,cfgazzl,fyvxq,hsyzssvuvk,oujwf[40 chars]ohbr' : Should be btqyxpvrf,cfgazzl,fyvxq,hsyzssvuvk,oujwfpby,psuqgg,pvwzvzlqrt,txnivepa,vmxa,zphvohbr\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [929 chars] 'z'] != 'bhidfqipu,cbkhxeudi,dglhjt,dmahi,dmqypoy[151 chars]juzg' : Should be bhidfqipu,cbkhxeudi,dglhjt,dmahi,dmqypoye,dyimtpneu,fzolsn,glkfnxml,ikwqv,kfuygendm,lisridbb,mgkoq,naqun,ncmx,nljghxvrqs,opugs,orqz,srjhqyfw,tbsitq,twtoftykhc,vgnhsvhwz,wapfh,yeipvwni,yrvc,zqjuzg\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [449 chars] 'z'] != 'azzu,clsf,edndcn,fktg,gmdfjkil,jixu,lesx[55 chars]kjmx' : Should be azzu,clsf,edndcn,fktg,gmdfjkil,jixu,lesxd,lxoz,mjkuxglrpv,pvduj,qujkl,srqkgbwup,sxyhwrbt,vciyvxkjmx\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [714 chars] 'z'] != 'bedqrj,bxucpyw,cbgwsz,drblu,ehlk,ipeyklz[108 chars]fxsl' : Should be bedqrj,bxucpyw,cbgwsz,drblu,ehlk,ipeyklz,jqdjaewf,mgqkltvahe,ndmfcpg,odyesmhnmb,oyobiesuf,qzeifddnfc,tcjo,uenwtgga,uodywdd,vzuy,wwdqaro,ysokgt,yycibfxsl\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [364 chars] 'y'] != 'anseosscdd,ihyvwvglaq,kfwl,pbei,pjgxoau,[38 chars]dtsa' : Should be anseosscdd,ihyvwvglaq,kfwl,pbei,pjgxoau,qnstdaxiw,sdbephtfuk,ttlp,wunakihr,yhadtsa\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [709 chars] 'z'] != 'asuleb,ayvxllsu,fecujvfon,feyxdoszwa,fyo[107 chars]ztyp' : Should be asuleb,ayvxllsu,fecujvfon,feyxdoszwa,fyoyxljlo,jbwdnoks,kkxr,nmplxj,oyqbb,pazlnj,qxcnakr,rkddfle,rxygqwqo,sczl,usoedjwzfq,vfzicpmvby,wgwq,xntpv,yonztyp\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [439 chars] 'z'] != 'cmoxew,eoms,eozqptyn,guzeq,irkobgosg,jru[53 chars]zrhn' : Should be cmoxew,eoms,eozqptyn,guzeq,irkobgosg,jruveczm,lzxnow,nfrxgzj,ozpeb,spimmoifo,whbqe,wyktxagdy,zrhn\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', 'b', 'c', [209 chars] 'z'] != 'dtjvb,gliy,gocylnmhe,kyzntt,lpekvnm,rgecfomi,zfggqr' : Should be dtjvb,gliy,gocylnmhe,kyzntt,lpekvnm,rgecfomi,zfggqr\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [404 chars] 'z'] != 'cqbmxiiw,eaktdrvxty,fnfirydq,mhjn,myzpwu[46 chars]qtba' : Should be cqbmxiiw,eaktdrvxty,fnfirydq,mhjn,myzpwu,satksfvxgu,sfvkm,tidfjj,tuszxbhl,wotaz,yjvd,zqtba\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [494 chars] 'z'] != 'efys,esvjmcaf,ftjgxbob,hfqsxowtz,hifj,io[64 chars]lcil' : Should be efys,esvjmcaf,ftjgxbob,hfqsxowtz,hifj,ioyl,jjromkrbbn,oivc,rykcjhz,uedhwamtct,wfopi,yavb,ybnraqjvht,zjfqlcil\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [919 chars] 'z'] != 'clzijmj,eswmnefkbm,eurd,fkzf,gpjzg,hlxuy[149 chars]cxsg' : Should be clzijmj,eswmnefkbm,eurd,fkzf,gpjzg,hlxuyishr,imgcjphcsw,kbsajnfjod,ndqsmycim,nkpgfnj,ogazdwur,peuwnazm,qbrtdqcywa,qrrnjhll,rehnzcvku,ryokgu,satszzrd,svokndvzfn,ujskld,vgrrp,xowruumzr,zlgmqfcxsg\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [759 chars] 'z'] != 'anybi,bppcpz,hbuncvxz,jljbl,jpcrblrhb,kr[117 chars]fylm' : Should be anybi,bppcpz,hbuncvxz,jljbl,jpcrblrhb,krrtkb,limttkkj,mabtalsokn,myqow,opmfvdgyig,osxiqjn,povvsvur,qyueeuazw,qzbpq,spacovjs,txqnjbpze,tzavri,vbdtqrxlf,xsvbmwfylm\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'b', [209 chars] 'z'] != 'bmiwutnfvk,cfhrwj,elnzjam,eomtn,feyamsbg,nphnyyloyt' : Should be bmiwutnfvk,cfhrwj,elnzjam,eomtn,feyamsbg,nphnyyloyt\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [364 chars] 'z'] != 'ftxsnykz,isjte,kjteky,sctstq,skakh,syplr[38 chars]fgdf' : Should be ftxsnykz,isjte,kjteky,sctstq,skakh,syplrqiu,trzjelsn,ukjgtlqnx,xlnf,zejovbz,zxfgdf\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', 'b', 'b', 'b', 'c', 'e', [104 chars] 'y'] != 'bxsbmiucf,nlbh,ryqxye,ytjnhwil' : Should be bxsbmiucf,nlbh,ryqxye,ytjnhwil\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [274 chars] 'z'] != 'eceanuopq,fwelt,imiumjvf,izvgaj,kows,lxo[20 chars]xvpm' : Should be eceanuopq,fwelt,imiumjvf,izvgaj,kows,lxowsj,mgun,nawuladerl,xvpm\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', 'a', [284 chars] 'z'] != 'bdteuy,drfglmyl,ibxbreau,jwgyhmbm,oypzo,[22 chars]gjek' : Should be bdteuy,drfglmyl,ibxbreau,jwgyhmbm,oypzo,qaabvrvv,scefwktu,snekgjek\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'b', [174 chars] 'z'] != 'agqpkhl,gmuyintg,lhmxe,mmbzznp,oxar,sxonhxzw' : Should be agqpkhl,gmuyintg,lhmxe,mmbzznp,oxar,sxonhxzw\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [1014 chars] 'z'] != 'acxvavvfp,bqstfvbua,dzclrsaftc,fogzifp,f[168 chars]szpg' : Should be acxvavvfp,bqstfvbua,dzclrsaftc,fogzifp,fxmsai,jivbqmej,jtwtwi,jvyphl,jynmkmyr,jzncqps,kceurdn,khvobt,levhxcglil,ptlhaat,rxytbtgoz,shmbuqim,vdlgnzdw,vhevamy,vhufhu,vsojgiz,whqkqevdym,wpebcyozz,xelrcoiet,xvaflaszpg\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [449 chars] 'z'] != 'ahvjelx,bpuiirws,ccqrzdfb,dqgovdj,foivz,[55 chars]snxn' : Should be ahvjelx,bpuiirws,ccqrzdfb,dqgovdj,foivz,nzfighixla,qttdqifh,sankpufl,vlrhfpkl,wmrdi,wusajei,xwvsnxn\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', 'a', 'b', 'c', 'd', 'e', [104 chars] 'z'] != 'cwoq,iaplgelq,zdnwri,zmmtqsfpb' : Should be cwoq,iaplgelq,zdnwri,zmmtqsfpb\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [499 chars] 'z'] != 'asdbmphuf,bumvuksp,cauk,irvwgeaafv,jogba[65 chars]bjrk' : Should be asdbmphuf,bumvuksp,cauk,irvwgeaafv,jogba,jrglsrwz,lklpcsxa,mowpgxpl,mpznmq,qmeoqt,upytx,uudeyyw,weks,zxvcbjrk\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', 'a', 'c', 'c', 'd', [134 chars] 'z'] != 'qfzr,tddc,xpgafs,xxjiictxq,zlsrryisj' : Should be qfzr,tddc,xpgafs,xxjiictxq,zlsrryisj\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [944 chars] 'z'] != 'awvewha,cewasmja,cxubxqqk,ddsubz,evrgxmn[154 chars]fbmg' : Should be awvewha,cewasmja,cxubxqqk,ddsubz,evrgxmn,exegpjogqx,flfrj,fvfjryk,geuuxoecr,gkttuoef,hric,igoivk,jbfkzs,kiuxsyczo,kqgq,ljrknsbiu,lqyrcxz,nqjbc,ocezpp,omwx,pqsoez,rsgkcog,skcpfkg,sxvctnvnd,yzucpwfbmg\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [434 chars] 'z'] != 'aistpw,flba,gzvfdmez,ilejpg,ivxzggk,jbtz[52 chars]jdlc' : Should be aistpw,flba,gzvfdmez,ilejpg,ivxzggk,jbtzshpq,mbuajqk,pwoweou,rzzvb,tnrnm,ubiqc,ytkesqa,zbyyfjdlc\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'a', [214 chars] 'z'] != 'iispjtxrim,ilrjitqk,kuvmkzq,uhmaaznaq,vdrkql,xnuwgze' : Should be iispjtxrim,ilrjitqk,kuvmkzq,uhmaaznaq,vdrkql,xnuwgze\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [494 chars] 'z'] != 'cibbes,hmzcwly,hnve,hpmm,hsrmetsep,kyfwo[64 chars]nmga' : Should be cibbes,hmzcwly,hnve,hpmm,hsrmetsep,kyfwooecm,lwifsi,mfvm,mprdeoe,owanpw,pjrvl,pzygjbg,qwdyk,rnrxzx,tqxwsnmga\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [849 chars] 'z'] != 'bkme,cmsboniuu,fgmey,hbdjxlzxqg,hejkdgf,[135 chars]praz' : Should be bkme,cmsboniuu,fgmey,hbdjxlzxqg,hejkdgf,hqqjqaumb,hvoo,kmckhbt,lhfrlmv,lhlfjxnbla,ljpcwizu,mwnbvanpn,nmlm,ntusvysmx,ozenshmac,qbdfqjh,usaljotpvc,wabuyaqqhl,whwj,wkageuywnx,ygtpraz\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [739 chars] 'z'] != 'aqpef,azxg,banouslsoy,btdb,gmwximt,iffrg[113 chars]npdm' : Should be aqpef,azxg,banouslsoy,btdb,gmwximt,iffrgdvniu,jcrm,mmdjdqlrfl,mmyuamfoxy,ncruqreg,pdoyjrwe,quwtuejbh,togqbdwy,vcbxejucal,vyxshhgt,wdrokymj,xocxvxmtdj,yrvnpdm\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [474 chars] 'z'] != 'bumzboy,cenersuxcr,eqlpududz,gorw,heqlhb[60 chars]tode' : Should be bumzboy,cenersuxcr,eqlpududz,gorw,heqlhbbcam,lqwgddnh,rzpnmqxwu,snlbgayhsf,sunhrymo,tllbgbf,vclhe,vxtode\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [464 chars] 'z'] != 'bbfqwn,hifvn,hykwfahghd,moduh,nzsvhovmh,[58 chars]tcga' : Should be bbfqwn,hifvn,hykwfahghd,moduh,nzsvhovmh,olmr,oujuwv,qcsebdm,seeeabg,sreqprbb,tlgftyvs,xghbkgt,ymowtcga\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'b', 'b', [244 chars] 'z'] != 'kiyosnybb,lzgdlfdrsk,oyjdvutdg,shwzivs,v[14 chars]gznc' : Should be kiyosnybb,lzgdlfdrsk,oyjdvutdg,shwzivs,vwgalgvy,xvspgrgznc\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [799 chars] 'z'] != 'aojy,bttyictb,coshk,ghgy,imfjjgdjg,imkdw[125 chars]yrjm' : Should be aojy,bttyictb,coshk,ghgy,imfjjgdjg,imkdwpw,jbojai,kopfrpqbuh,kqbqk,ktmmodfra,mkix,mnecw,njhixm,njywcos,obdyofomor,okvqkp,olfrkft,otxvxqu,pcfqcgk,uzbruserp,wtjlqdhqo,yrjm\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [604 chars] 'z'] != 'dsiietj,ewtqbiyqd,fmfurwme,hwir,ihtmvjnx[86 chars]yxml' : Should be dsiietj,ewtqbiyqd,fmfurwme,hwir,ihtmvjnxd,jkeni,luwwmnt,ojpyyzi,osjwe,qizzrplxft,qpapblaufd,qtcuhx,tkovezvejb,vajgd,yikfnsfal,yxml\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [419 chars] 'z'] != 'alsmzvsco,fbibitqu,gdnbxypxl,kpfpbwex,kt[49 chars]vydy' : Should be alsmzvsco,fbibitqu,gdnbxypxl,kpfpbwex,ktvgmsevi,ojznudol,olzs,qnidkckffg,qyltjxts,vgclbn,vydy\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [689 chars] 'z'] != 'bdkngg,eoyolbmu,ewihcgkmi,eybjl,gcjikjrk[103 chars]zchu' : Should be bdkngg,eoyolbmu,ewihcgkmi,eybjl,gcjikjrk,hjmdfxymff,itwqelb,junbc,peeukozp,puerbymo,qbkxfyal,rkjiaea,saty,yqvmu,ywwopcpfil,zhhnw,zregdqtcn,zujfzchu\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [789 chars] 'z'] != 'bnfqcxsqsi,cadcsp,dryj,dtewvnn,hrnar,inc[123 chars]zkog' : Should be bnfqcxsqsi,cadcsp,dryj,dtewvnn,hrnar,inckirg,iwgixj,jpbithfp,jslyeiwzd,kwfuagzrq,lzgeeb,mrerhirj,mtjnrvwz,ocxaaii,pesrip,pwdnuw,vjjngl,wclki,wjhbbclt,xlflgekhh,zemzkog\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [644 chars] 'z'] != 'accbw,akesytgs,brtoyek,diskmy,ecfnqsv,gj[94 chars]lxsb' : Should be accbw,akesytgs,brtoyek,diskmy,ecfnqsv,gjhaeogx,jlfi,kwhgwthdt,lczqbf,obukwhe,qywynnojg,spfqarlfc,sydsysvynw,tikrgl,xhpmia,yvosr,zvfpxglxsb\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [599 chars] 'z'] != 'cqdaxyk,dgvyonv,dtjk,huhpnwc,jbpsskraqj,[85 chars]kxzs' : Should be cqdaxyk,dgvyonv,dtjk,huhpnwc,jbpsskraqj,kvrell,ltvidtt,mfwa,pbfaazxc,qiggyzjsuo,rsfxrgj,rvwwzhsro,vbiwwiws,vwbdvnfo,zpcklr,zvkxzs\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [459 chars] 'z'] != 'akbfnjzp,duoai,ffstd,gkdkudv,hvtlxuym,iv[57 chars]zohb' : Should be akbfnjzp,duoai,ffstd,gkdkudv,hvtlxuym,ivupqaymnb,jwjxzv,mpbmydve,nvlxqyfeqr,owcl,pmdnb,xhhevu,yzjzohb\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [879 chars] 'z'] != 'asou,bdzskfjzvp,dwhp,ebzoid,eicugvdpkj,e[141 chars]ixjd' : Should be asou,bdzskfjzvp,dwhp,ebzoid,eicugvdpkj,eyclxcfvt,fboquvwz,finzn,jmghdwcxu,jxutsc,kzsuanags,lcrupbkf,ltzpit,qideyqm,qqfgeyepn,rnexhro,tlwaruujvn,vevu,vndmnkot,xbtmaf,xpxtyuflio,zogycixjd\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [809 chars] 'z'] != 'bbzyk,ckvztvpqhy,cnlmzgg,cwxmiol,edhxwwa[127 chars]ybge' : Should be bbzyk,ckvztvpqhy,cnlmzgg,cwxmiol,edhxwwajh,eexpngfq,eydwdzosql,grxgfreii,gunzbehfdd,jlullm,njijopvp,otrsvg,qnhwyxhhc,qnucb,qzmblzo,rfrpj,wcmwrdhc,xunejkbuom,yqvmc,ysyzybge\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [299 chars] 'z'] != 'apicwwakwa,biydukty,dpgchpg,msxueoru,nfn[25 chars]aimt' : Should be apicwwakwa,biydukty,dpgchpg,msxueoru,nfnj,qtul,uygan,xcuxzz,zuofoaimt\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', 'b', 'd', 'e', 'e', [159 chars] 'z'] != 'evyxjjzp,fxuo,krqginwlm,thbhyzt,zemekzttd' : Should be evyxjjzp,fxuo,krqginwlm,thbhyzt,zemekzttd\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', 'a', 'a', 'b', 'b', 'c', [129 chars] 'z'] != 'gaveerj,pwmcgzvbmn,rptgqouaw,vkbqrk' : Should be gaveerj,pwmcgzvbmn,rptgqouaw,vkbqrk\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', 'a', 'b', 'b', 'b', 'b', [99 chars] 'z'] != 'axncboute,eznb,kyhb,llnbshitf' : Should be axncboute,eznb,kyhb,llnbshitf\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [294 chars] 'z'] != 'aguxfwzcm,dcidw,fikdq,gbspusp,hmolh,krvk[24 chars]yptk' : Should be aguxfwzcm,dcidw,fikdq,gbspusp,hmolh,krvkn,mdmlpsir,mowlld,ruwvsqyptk\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [699 chars] 'z'] != 'afvtbacihp,ajdjfl,cspfzq,egdiwr,iijh,iwm[105 chars]soip' : Should be afvtbacihp,ajdjfl,cspfzq,egdiwr,iijh,iwmvxucsx,iyzo,jhxnlr,mioagfthv,mttyoioh,nqurvrjyje,rrlsmmi,uglf,unnjzatyrc,vdwsopijlk,xcqyp,xqmwccps,zfcvfpsoip\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'a', [194 chars] 'z'] != 'afjatz,gygsts,mjpwjvy,qyeeadeus,uvptx,wpmtvkxgkh' : Should be afjatz,gygsts,mjpwjvy,qyeeadeus,uvptx,wpmtvkxgkh\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [564 chars] 'z'] != 'ceoyvjvqx,cjyxixldo,emsqse,enycdzm,eqjzs[78 chars]wcrz' : Should be ceoyvjvqx,cjyxixldo,emsqse,enycdzm,eqjzsufjow,jwfdoaplb,kjqanthb,korli,olqkwqn,shnepj,tdkrcdp,tilyehuaqo,vznjcjvhww,yswcrz\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [744 chars] 'z'] != 'ajzzsu,awofkuujdg,dfqgcyxgc,exiqf,ezuj,h[114 chars]yrxl' : Should be ajzzsu,awofkuujdg,dfqgcyxgc,exiqf,ezuj,hukyopoer,idjhdchrwo,jwdfigvzz,kcwd,khxsvsz,kwakvfd,nvimopjvu,rrlglmo,trpplqhj,uhmlp,ujfhpie,xqzqj,xqzrd,yqkmkiqvn,yrxl\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', 'a', [274 chars] 'z'] != 'ifuq,okoeaozapy,qddhhhtb,sxemqsdvp,urwtp[20 chars]wsot' : Should be ifuq,okoeaozapy,qddhhhtb,sxemqsdvp,urwtpqc,vzpjy,wfituio,xnawsot\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [374 chars] 'z'] != 'bbqgznpl,ftbvqbqe,hbpstlh,lvtgalcmm,poyb[40 chars]yhsm' : Should be bbqgznpl,ftbvqbqe,hbpstlh,lvtgalcmm,poybfhzj,terxdid,uieod,wbwdzz,xxdcxcyqrl,zzayhsm\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [764 chars] 'z'] != 'akoaqngawy,ayvqw,cascws,eibb,gtcj,hhjnbr[118 chars]izno' : Should be akoaqngawy,ayvqw,cascws,eibb,gtcj,hhjnbrfjjl,hmxoxs,ijhl,jqpog,jxnd,kgxuclf,mfohjjo,njmbwpe,nrtllbumd,phwqk,qingwflzde,svycgdo,tmtztdpjr,ukyhfdap,vhdrevkd,ydzizno\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [594 chars] 'z'] != 'bannda,bqfpe,dybieur,fhnh,huvu,ieuefmy,i[84 chars]zwdv' : Should be bannda,bqfpe,dybieur,fhnh,huvu,ieuefmy,ighxdqoww,kpunh,lymftrtc,miuddungz,nxaq,pgosgjl,pqnvvucnp,thgvsbxigf,vmvpl,zfgibphe,zzwdv\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [474 chars] 'z'] != 'bnoswzj,clxllgsaa,cmnpxkn,epfbridiv,hsgn[60 chars]dkts' : Should be bnoswzj,clxllgsaa,cmnpxkn,epfbridiv,hsgn,lojkl,lxcffzp,mjsrdirbgt,sjzgryh,srvvla,vvhfkkv,xigvooa,xiudkts\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [479 chars] 'z'] != 'cmbnbtvm,cwdhncmi,icygtcdql,ioahntdr,nfq[61 chars]lftr' : Should be cmbnbtvm,cwdhncmi,icygtcdql,ioahntdr,nfqhd,nkzz,npwpvehea,peieljbyml,rzijb,vfunu,vvbczj,xdovntvoi,yawlftr\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', 'a', 'a', [269 chars] 'z'] != 'eomqg,fdqw,pzzgkuibtm,uedwvaixnx,ugsffei[19 chars]rqey' : Should be eomqg,fdqw,pzzgkuibtm,uedwvaixnx,ugsffeilbc,uonptcsbay,ywglrqey\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [844 chars] 'z'] != 'gemimxs,heqzr,iqbo,jstof,jwvvwfm,khkqact[134 chars]tizm' : Should be gemimxs,heqzr,iqbo,jstof,jwvvwfm,khkqactbkw,lapv,lbwdz,lsduk,oixo,qaqhgoyaby,snxg,szitrvjhfc,tserwflzw,tylvfb,uledf,uoinzjiep,wztuabvtj,xbybonjb,xnheaf,xrckjypt,zoffriuqwp,zxtizm\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [569 chars] 'z'] != 'aonhjp,dhubzwsrr,fwhstxr,huitomz,jhudujd[79 chars]wmft' : Should be aonhjp,dhubzwsrr,fwhstxr,huitomz,jhudujdkx,kodvl,mjrwbcqvb,moruiubz,osvfuwuvd,tldphdql,wpsm,xvqfexqim,zghrdnacrk,zlyrvpwmft\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'a', [189 chars] 'z'] != 'gbbtod,gzpejcpcnn,lahp,tjawyeohxx,twydlx,wcarmj' : Should be gbbtod,gzpejcpcnn,lahp,tjawyeohxx,twydlx,wcarmj\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [514 chars] 'z'] != 'acnvfj,cvpfqpu,diyyr,dlpgyeq,edocfzqy,hq[68 chars]ozqg' : Should be acnvfj,cvpfqpu,diyyr,dlpgyeq,edocfzqy,hqbybbm,iyzourq,lyvbvjbzml,ofvktm,skxqoplqd,ssmo,suymxkykx,wgmnkeyf,wyozqg\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'd', [234 chars] 'z'] != 'ajtvfxvgrd,aljhtwdmnl,leeyglnepw,rjjj,xgwfkfm,ytmminzmfq' : Should be ajtvfxvgrd,aljhtwdmnl,leeyglnepw,rjjj,xgwfkfm,ytmminzmfq\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [659 chars] 'z'] != 'cgejxpt,ckxfqax,dqmqavmhl,eulls,fjdyudvh[97 chars]xssq' : Should be cgejxpt,ckxfqax,dqmqavmhl,eulls,fjdyudvhjz,fztvy,hyrnqjembo,meyxlcewf,muxonxy,pswucoivz,pvyvahpry,rpqmil,rxotlwrvjj,ryba,wpllzqahbd,xetz,xssq\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [654 chars] 'z'] != 'dtsdry,edvtcojmgl,enrkxyhpi,fpudhdxrlm,f[96 chars]pyau' : Should be dtsdry,edvtcojmgl,enrkxyhpi,fpudhdxrlm,fzwuyajmkt,gecskvrzm,jfopjbank,jwwjkuxsd,kderyxh,nvtxcg,pahurtpvx,qfmympxcg,rzbnrhv,wijmfzdek,zespyau\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [1079 chars] 'z'] != 'chwgiskltq,cqzoqzo,dldhrtykbh,dpmszejdfx[181 chars]rcdq' : Should be chwgiskltq,cqzoqzo,dldhrtykbh,dpmszejdfx,eeogeh,elmoakpc,eqpgsprr,fwuuoeignk,gpedzkigho,kmrbuditvg,lpfkiag,lsuulvctap,nagtuus,nfjgikhj,nuzaquagi,ouwamiypp,qixqmky,qstpzt,rfglbbtxbg,sxafkthom,tphqiw,twopuizbxj,ubqejtd,zyforcdq\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [914 chars] 'z'] != 'alxqpse,blukjspebb,eoxhjytp,esbpgtyq,etn[148 chars]undf' : Should be alxqpse,blukjspebb,eoxhjytp,esbpgtyq,etnlec,fffwe,gwxcaon,ixcsesxs,jehtkbdq,jpguij,nabkvwebz,nopaqv,oawen,pfkauules,psnw,qufvfmgb,ranhgtjpgc,rvwn,sblprzgy,tqdvu,tzbiv,uolfuvzb,uqfcdholk,vfundf\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [264 chars] 'z'] != 'cncdx,irbuojw,nudpw,qnwzkx,rifhsdik,rpar[18 chars]jfgs' : Should be cncdx,irbuojw,nudpw,qnwzkx,rifhsdik,rpartx,tjlo,wbmmpeha,xjfgs\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', 'a', [264 chars] 'z'] != 'epxu,keqtcb,kyalwkfwto,lcdnjav,omhpyjkpw[18 chars]bhmx' : Should be epxu,keqtcb,kyalwkfwto,lcdnjav,omhpyjkpw,ppkxc,vqueolaw,zcbhmx\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'e', 'e', [159 chars] 'z'] != 'nakel,prltl,qvvqusg,uerhylx,volxpeh,vznlf' : Should be nakel,prltl,qvvqusg,uerhylx,volxpeh,vznlf\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', 'b', 'd', 'e', 'f', [124 chars] 'y'] != 'dtqvjq,eutqk,fpprjpt,jnjrqtjy,nibv' : Should be dtqvjq,eutqk,fpprjpt,jnjrqtjy,nibv\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [439 chars] 'z'] != 'bhxgg,fxokoe,hcgvyj,ijzxfaw,itthl,kowyyh[53 chars]todz' : Should be bhxgg,fxokoe,hcgvyj,ijzxfaw,itthl,kowyyh,qshd,qtoz,ublcyhaov,usfgiq,vlbhljmw,vyutptzq,wdzy,xotodz\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [384 chars] 'z'] != 'ccrb,dhazeptamx,jttri,kmob,migsdjxr,mknz[42 chars]qdlv' : Should be ccrb,dhazeptamx,jttri,kmob,migsdjxr,mknzcssf,mtpwpdd,nzslaw,qfxpdces,qqqneo,sijlnsqdlv\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', 'a', 'a', [244 chars] 'z'] != 'aehztarh,fpvfbqso,lzife,qpvakivjap,syked[14 chars]vsmw' : Should be aehztarh,fpvfbqso,lzife,qpvakivjap,sykedxzofs,vocqfqh,vsmw\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [439 chars] 'z'] != 'bfkhmlpom,boin,clpoffgjb,dcqexfj,dloxj,h[53 chars]bnem' : Should be bfkhmlpom,boin,clpoffgjb,dcqexfj,dloxj,hyvrcswel,maxbk,omumahgqx,peaf,pjpobhzrp,svit,tmao,xhpbnem\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [864 chars] 'z'] != 'bgrkrb,bnlzdy,buqdemigmx,cdnttpwy,cfkf,e[138 chars]hucp' : Should be bgrkrb,bnlzdy,buqdemigmx,cdnttpwy,cfkf,estbyjurcl,eutbmckqe,gmotbxuje,guiajnnw,iplatwv,lteyqs,mnalwhfq,nbgdhb,pedtshzwza,poyjgqnfur,qufp,thxhtskuh,uaxe,uudeeh,uvcp,vtvnk,wlfbdn,xhucp\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', 'a', 'b', 'c', 'c', 'c', [114 chars] 'z'] != 'dzbdpncndm,edatunjcf,ljchw,yszmv' : Should be dzbdpncndm,edatunjcf,ljchw,yszmv\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [984 chars] 'z'] != 'aeuefx,bjai,dfncpkrki,dlcl,grug,hbhgney,[162 chars]snkh' : Should be aeuefx,bjai,dfncpkrki,dlcl,grug,hbhgney,ibulc,iclxipstu,ieccwtag,jczsbarz,jiboarp,mgefectir,miihznuxc,ndegdbodp,qmesmumwi,rjeabmgtqf,rztgsuuvr,shmtftkog,sjovaxivtg,smuppku,tihaaxre,wtrizm,xuzlsff,zalmigsnkh\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'b', 'c', [194 chars] 'y'] != 'hdmdso,hpeesjwjl,qjbywh,tymevcqmc,yirgqa,yscermj' : Should be hdmdso,hpeesjwjl,qjbywh,tymevcqmc,yirgqa,yscermj\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [384 chars] 'z'] != 'crshxz,ecsihe,fpydeuh,oapkapxuqg,okgtbyp[42 chars]wuan' : Should be crshxz,ecsihe,fpydeuh,oapkapxuqg,okgtbypupk,patcobz,pzqrdouul,qcvkgwh,rygavhgrpq,vwuan\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [664 chars] 'z'] != 'autxaiyfq,ccpegikvti,czdwjj,gagedtggbl,g[98 chars]yuwq' : Should be autxaiyfq,ccpegikvti,czdwjj,gagedtggbl,gfyswk,gwrksyjaa,ijanljm,ityrl,mkuqc,mwddujalt,opklsq,plngtn,pvygzr,veogomg,xsbtmwdiyl,xtcptv,yknqqyuwq\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [844 chars] 'z'] != 'afghtybh,byslggxe,dnduk,dzbdq,ficwwwnsw,[134 chars]ycyx' : Should be afghtybh,byslggxe,dnduk,dzbdq,ficwwwnsw,gaxs,kzutfp,mazzdtqve,mkjnkuixah,mojjehpnkb,nppmwggwo,pbikealt,pbzl,pgkf,qvzsdpwld,twilepsi,uupkkggln,vemhlwdvq,wggbpeowpm,wsygnccmqp,ycyx\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [399 chars] 'z'] != 'aeskkx,cdxohlgmea,ioow,jzfl,kznitlwbm,mg[45 chars]dfrt' : Should be aeskkx,cdxohlgmea,ioow,jzfl,kznitlwbm,mgapliljax,nkdguefnu,pmzrchhdhe,tyfnjlyvq,vcsfhdfrt\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [644 chars] 'z'] != 'bfamylpi,bscdj,cznoqlaj,dtnmrzeb,ezea,ff[94 chars]xobz' : Should be bfamylpi,bscdj,cznoqlaj,dtnmrzeb,ezea,ffdcul,gvebep,hlyzath,jcpmzb,lnpdtrcrb,ndnc,pxhdort,rurkuuqs,spbs,uficmz,vrzcceygna,wxuxumnnbo,zxobz\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [759 chars] 'z'] != 'dorkax,dsomltx,fejp,govkuoj,gxatxer,ikda[117 chars]dwsm' : Should be dorkax,dsomltx,fejp,govkuoj,gxatxer,ikdadcxmc,mlhheo,oaby,ogfsjllxl,oofpcmnwq,pofqgq,rqkgk,tetk,tuzsj,tvprre,ubkcnmy,veqeppvm,vupzwped,wlpmyie,wqbwxmke,zapoqdwsm\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [939 chars] 'z'] != 'cnzcvis,dyvxhoym,ehcklwdw,ixqez,jehotyc,[153 chars]fxbq' : Should be cnzcvis,dyvxhoym,ehcklwdw,ixqez,jehotyc,jhacydmyq,liicvpkpka,motob,nghri,nwzdcq,ppvhkcww,qfddhyl,qowqlznmzp,rpqpobtcqg,snvynjlhg,tdhkrrfy,uvpjltejcr,vxglferku,wtag,xbhjya,xutjtvvdx,zanacc,zswawfxbq\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'b', 'b', 'c', [164 chars] 'z'] != 'bvbmzvl,frjfywzlo,hpgdp,jlgjzc,ydwe,zoilzy' : Should be bvbmzvl,frjfywzlo,hpgdp,jlgjzc,ydwe,zoilzy\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [394 chars] 'z'] != 'abdwdst,aphvjbf,bxwm,fddngvcrv,morbkzfh,[44 chars]wpou' : Should be abdwdst,aphvjbf,bxwm,fddngvcrv,morbkzfh,mvtegn,nusxu,phpcn,rmucm,uvxonug,vdeqvzdpgg,wpou\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [354 chars] 'z'] != 'cakdvenfuv,gnbgpjmkxn,guenoyenit,jdbzuj,[36 chars]fofh' : Should be cakdvenfuv,gnbgpjmkxn,guenoyenit,jdbzuj,kdcuvf,osjk,thmlhze,xfjpmkjki,znlsqhfofh\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [904 chars] 'z'] != 'ahjiodfgmk,bvwrvdoxl,cbvsfknp,dvaficgih,[146 chars]tyjz' : Should be ahjiodfgmk,bvwrvdoxl,cbvsfknp,dvaficgih,etfgzovfp,jbttixv,jdwgky,kovjwhpkf,kpujv,lemw,lfchvfgj,mtypifa,nyulentpqy,ootyni,pdvru,perykfyw,qyfkpn,rpqbtg,uhbpuhedqv,uikzhzj,xagng,xbyorbaz,zrtyjz\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [679 chars] 'z'] != 'bmtjn,dhuydtza,ecgknm,eibfjo,ejwg,fwml,i[101 chars]wnsi' : Should be bmtjn,dhuydtza,ecgknm,eibfjo,ejwg,fwml,ipvome,iucf,lgefpf,lhfpmn,muexgthfs,ofkggmx,ohqnvtn,spwyk,ubtrqqyha,wbglwwbl,yudmdhpm,zbqsuobynl,zunmjwnsi\n", + "\n", + "======================================================================\n", + "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + "AssertionError: [',', ',', ',', ',', ',', 'a', 'b', 'b', [209 chars] 'y'] != 'axdixipb,lhky,nsjqdjco,ofoniovkp,rkbquosbrc,xceoubi' : Should be axdixipb,lhky,nsjqdjco,ofoniovkp,rkbquosbrc,xceoubi\n", + "\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.338s\n", + "\n", + "FAILED (failures=100)\n" + ] + } + ], "source": [ "# This will test your function \n", "test_alpha(sort_alpha)" @@ -363,7 +2564,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -377,7 +2578,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.6" + "version": "3.8.13" } }, "nbformat": 4, diff --git a/mod/__pycache__/testing.cpython-38.pyc b/mod/__pycache__/testing.cpython-38.pyc new file mode 100644 index 0000000000000000000000000000000000000000..62c9cf0ea6c3721db07f313cdffbb19667c17976 GIT binary patch literal 13337 zcmds8TWlOx8J;tR!!^!aEvxn{%W$r{ zddbKdjIJ4OtQ612<#EhSl#d*F<2C@UC!R#QeC3y0lmfgowybt>! z-p>cHALfI6ANC`Bh!11GpO5hU*dO2r_(ALs@<{t7d=&d9_!0gjKgyrt$N1Cy zIDdwl`~*MAPw_E+nx82SXAkqU{2ZPf1UAIJVl&TeYyiyIi1HkoE&LfE{T zw{g^0u=0T?9Lr7XVcZY6eK(AiJZ`6raM<$mj+1k}d0XTy-)>x}Rx0%i3GNh~z|S)x zT>r(fPhm5#`FGL0rrp=>vx3eU*YBmc9%!>{#rVD!Xsh~~w#)*98!POZcKgL;J&3Kw zd5p)`+KzN>*;tM(vDL);+LEypE9yZ~?N``}zQ&k#=NxFI*0j~WB}V65!)Ozed34_K zBbMmrpGRYB^ii|=eRf}KFqbv%>jlOQ9=n&y#_nq|EgJ`^c}&QP_T_SU*Yf>bZe4ru z^2A%dE&PeH1%@ZC+5TMMRVEzam1nH{+=OdQ`_x=4RLl9m@yh-LzW4+U(J2=*l|?ZK z`UBYf1R9MEu>`A~+d%}G2In2xK$<~Bq%2P2U`bn*(wJo*;&>KXLG2HWf8bAz(DH_Ks1U>nwZ&sba z4&%Zq7j0nJDs!)d;bQNUgD`1vPS1x%$yx}9rtF1)PT#DS%TO!>BTUC7Q>1G|h~+|N zg=|{M?o@-%aFF_LD0?3v_vrPbgu*+~4BvCAPauT-t0xYQ24 z^iKRdGWJ#^>NaCf942m#P(w_Jr>JQ$M=Fn*vk9wqo3N#zGId-DGJ|b;Hb$p}RtbS8 ziDU;T#A#gWP%r{A8IqgyEHPMw`M5oT=|fwk$(gO`AL(~uWIn_h+!kli;P@gPXXJ6H zXPy-=(77B@b68>jORnPwd9PHtL@1D~Bs5*Co#-L>*7F}V!-oLu4I zO>^tgE4cYDY+6lO?oLTIp4uQsKN7M9F|`A-`)$GGNX7?`bj=O{!3I$@maqUC$77U^jt&Qp&_bkZ8%6ZSSW~ zl6pJbFYL_GBZIzIP#D26{Ti_+5x{EaBd`_;`mYhu-EvI@VQG8JztQMV`k%@f*y@{i zA^!op5VG@|@K20O{Ey*aiE%cki;)19UI)bBJ_TR+4 zx^kuvT-VgRxRvPe@J@y*Oyp-gCvQtvq-Cq>@pH??mmG<&5{q5F$#BrdiJhb5y=*0f~r;Uuyp8*8S|5I{dd=p5foE2Sc)W>T^BU8j&!c}_pcKR?Mb3R2Hk!gS9|Mr8FwS=_U0r}@_$GYrFK)(k4q6CRd=Uq z@4cGOlEm9WS(V`I$xQ?uKLd)CoDCQyt7nmdlX`B*B$3gcpp|oRIwmM>gE-9&S~=OC zStF15ttjNKS#2Yw49UO6$&#$S0?))AsYTk0)9_xhe~E zOTBAumYJxXW*jxs(Cps=;+8@0K%4Mph?#cS9VOV&OxPiYjw$6kxEmRE*SefzgC`oW z<4KvVMMY~(FCwlOMU^IUw)W$QfKjvBdl)X#7ifcFJp$gEmk1y{33{yx$zx13-zLWD zc&kUiJ(!9#$1D)J-9ww4n>NUPY>&3@HoBGGa6JO<7)J|h8_RfjLne#Jbrb~pXsDy$ zaR=1Z15$K7kB2)jH%^#)8&`W{?lGsjPrM$Y1TTxjdk?YqN#Jb|Q?o}eW+GrrO?0#M zDr5s=9Q9aLhvdcwv3d0UuY*a3t6a^{nreUG@TxZ&x z_40E*by!mjn1Ltz5xebe9XnJ(sbMM+D z0}S;KB{^^Np%CXA9Gtp0%+A0WV}~6IbfPJPXdfY18o=(#y|a z*ix+dISkY(quXMp_WUg?$j_K(Z`fW1(pfxlcHF$;;tNj+d)l4@87y!xr`}fIqllt@ zruM?sMe_z^KTfPF#qfhFUnE7qt4`i43JZe5Fv_N7R)kZtPt-2lvKAKQ0P)IQTVO2E z6#1xI=PT7Z(cDuTnY!eS9Dk2xb9tT<&J zgG7*AVXLViv1F|Fts$MW)>sPjBI=?2SPC=n@h*j_U=4z>K7ktE&q$JO(}5~M_hu); zgs^K)*UyQ!x^Y(l**1JdGVebnigoiIleO{=^`gE=y<~thjsqFsj4h)ezKW7K)>|Q* z3-nd2u;Q_X=f1{Np*$TAJAD?SM$?_7MhgKXwINkv50K_o@5xlxx}geolynvJIeL}{ ze}S8=h)Ly)H;JV+XTZT|)Z(QJCu1_KkBZHDPFc_x+bV^OvdkSXypn#@c(w^4BDA`jqtrZpyLj#mrvXk>3z!bvvS*#GYJ5vLe4C zdL2$;he|!B6?wqMcaxlW2i$HV7}YL`Z{qEqw&=GFK}hfQ1?fy6Ttprnqne2+k1IpRI(tHf3jlzT+P(zd;e`(eWOL|}8Q5v;gQ&@yTw zPkeP%Ih0E-yZt3@H_R8-2_As?I?2Qwu6BG&`i@C#(tJ@8b0>#LnJ?s_;ygiX1bMQ# zHqd}mbVQb8$&AIYqBhoCBX|j>D-Jg((dGv2YWi2zmnw(>_ug{-0di}%T*^lD;AJlj z*B^KZZs+K*z`dqO3T`uqDiomx+Kj7puEbOvtqldT6+I zSvm+PRek|)hb)i9$qCH+h!+%esCXh5P5p_wprJ`iB-dW&I%U-;gtpYHWttugow|Ht z?DUy)>37e+bNgG%8!4iD3k^z?vSLcZ5Ck+KZ@F|t-hyI79!Xwa#WmtZ)o9fUkFELG zB&o-6Jh!&-#Iy80&)`6c{&>UpKHN^$oHlqJjoPzevX|m$Wth zUXJ3Q@j~k}G-8Q%Ot*yIJ_(SfY>ZHE+ZyRk^2*!kmTuGAJq>c{WS0}#=6XIy-BEtC zy$qdA=4b5uT&^NG-L|ReGSVt{N!|VqciW24%1R@9StX)JRnH_s{8tG5XMpFqzAU}t zKSB_~%Q9iM-w&|<1pg_J_f^t{EV`ibjtT=>GN+|G;xaW?sku(gBsH&7LsbfyHWie% z5${n`poXRl$&ng|9E@y8U$HDnEy=$`nDdEn3Ny_h{zlj#BQ=b_5o`x!i!+^V^Y_o# JNNOlG{9j+%f&>5n literal 0 HcmV?d00001 From b8c5c13972dbe507722b61606e460e492a3856f2 Mon Sep 17 00:00:00 2001 From: Nerea Larrachea Date: Thu, 6 Oct 2022 18:11:38 +0200 Subject: [PATCH 2/2] uploading last changes --- .ipynb_checkpoints/main-checkpoint.ipynb | 1041 ++++++---------------- main.ipynb | 1008 ++++++--------------- 2 files changed, 560 insertions(+), 1489 deletions(-) diff --git a/.ipynb_checkpoints/main-checkpoint.ipynb b/.ipynb_checkpoints/main-checkpoint.ipynb index 746c000..5e06275 100644 --- a/.ipynb_checkpoints/main-checkpoint.ipynb +++ b/.ipynb_checkpoints/main-checkpoint.ipynb @@ -497,13 +497,25 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 86, "metadata": {}, "outputs": [], "source": [ "def mode_counter(arr):\n", + " import operator\n", + " counter_of_i = {}\n", + " \n", + " for i in arr:\n", + " if i not in counter_of_i:\n", + " counter_of_i[i] = 1\n", + " else: # i in list\n", + " counter_of_i[i] += 1\n", " \n", - " pass" + " sorted_mydict = dict(sorted(counter_of_i.items(), key=operator.itemgetter(1), reverse = True))\n", + " \n", + " for key, value in counter_of_i.items():\n", + " if value == list(sorted_mydict.values())[0]:\n", + " return key" ] }, { @@ -512,6 +524,7 @@ "metadata": {}, "outputs": [], "source": [ + "## manera de hacerlo con librerías\n", "def mode_counter(arr) :\n", " m = max([arr.count(a) for a in arr])\n", " return [x for x in arr if arr.count(x) == m][0] if m>1 else None" @@ -519,7 +532,7 @@ }, { "cell_type": "code", - "execution_count": 54, + "execution_count": 87, "metadata": {}, "outputs": [ { @@ -528,7 +541,7 @@ "text": [ "....................................................................................................\n", "----------------------------------------------------------------------\n", - "Ran 100 tests in 0.576s\n", + "Ran 100 tests in 0.320s\n", "\n", "OK\n" ] @@ -1602,7 +1615,7 @@ }, { "cell_type": "code", - "execution_count": 79, + "execution_count": 94, "metadata": {}, "outputs": [], "source": [ @@ -1616,7 +1629,7 @@ }, { "cell_type": "code", - "execution_count": 77, + "execution_count": 91, "metadata": {}, "outputs": [ { @@ -1625,7 +1638,7 @@ "text": [ "..............................\n", "----------------------------------------------------------------------\n", - "Ran 30 tests in 0.058s\n", + "Ran 30 tests in 0.116s\n", "\n", "OK\n" ] @@ -1647,881 +1660,420 @@ }, { "cell_type": "code", - "execution_count": 80, + "execution_count": 149, "metadata": {}, "outputs": [], "source": [ "def sort_alpha(string):\n", - " return sorted(string, key = lambda x: x[0], reverse = False)" + " string+=\",\"\n", + " newlist=[]\n", + " word=\"\"\n", + " newword=\"\"\n", + " for letter in string.lower():\n", + " if letter ==\",\":\n", + " \n", + " newlist.append(word)\n", + " word=\"\"\n", + " else:\n", + " word+=letter\n", + " \n", + " newlist.sort()\n", + " \n", + " for elem in newlist:\n", + " newword+=\",\"+elem\n", + " \n", + " newword2=newword[1:]\n", + " return newword2" ] }, { "cell_type": "code", - "execution_count": 84, + "execution_count": 92, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "[',', ',', 'a', 'a', 'c', 'e', 'l', 'l', 'l', 'o', 'r', 't', 'u', 'y']" + "[' ',\n", + " ' ',\n", + " ',',\n", + " ',',\n", + " 'a',\n", + " 'a',\n", + " 'c',\n", + " 'e',\n", + " 'l',\n", + " 'l',\n", + " 'l',\n", + " 'o',\n", + " 'r',\n", + " 't',\n", + " 'u',\n", + " 'y']" ] }, - "execution_count": 84, + "execution_count": 92, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "a_string = \"call,you,later\"\n", + "a_string = \"call, you, later\"\n", "sorted_characters = sorted(a_string)\n", "sorted_characters" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 93, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "data": { + "text/plain": [ + "[' ',\n", + " ' ',\n", + " ',',\n", + " ',',\n", + " 'a',\n", + " 'a',\n", + " 'c',\n", + " 'e',\n", + " 'l',\n", + " 'l',\n", + " 'l',\n", + " 'o',\n", + " 'r',\n", + " 't',\n", + " 'u',\n", + " 'y']" + ] + }, + "execution_count": 93, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "sort_alpha(a_string)" + ] }, { "cell_type": "code", - "execution_count": 81, + "execution_count": 150, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', 'a', 'a', 'a', 'c', [179 chars] 'z'] != 'gtlfooaslr,toiz,tpkthrvayf,wyoyroe,xuctrthaio' : Should be gtlfooaslr,toiz,tpkthrvayf,wyoyroe,xuctrthaio\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', 'a', 'b', 'b', 'c', 'c', [89 chars] 'x'] != 'basictu,cuxf,hfrolrvmk,lebc' : Should be basictu,cuxf,hfrolrvmk,lebc\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [559 chars] 'z'] != 'awjmoia,deukkgp,dfuqry,gpfclgzdou,jjhq,j[77 chars]mutd' : Should be awjmoia,deukkgp,dfuqry,gpfclgzdou,jjhq,jvziauvf,kslmwx,ljyvai,lryuiafks,ndedhsnv,pulz,puuxhmgzqw,qbifmidfj,rhbe,umkzqmutd\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [329 chars] 'z'] != 'exmkaecxzd,faqnpeu,gvfdg,jhamugtg,ndyhjh[31 chars]yeja' : Should be exmkaecxzd,faqnpeu,gvfdg,jhamugtg,ndyhjhgynu,pnpyov,rfjlyoh,rfnb,rgso,vyeja\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [754 chars] 'z'] != 'atyng,bwjddn,bwnclvnb,coyxjowp,cpuylriyn[116 chars]uyrl' : Should be atyng,bwjddn,bwnclvnb,coyxjowp,cpuylriyn,dnalybx,eirdb,ekjjly,ffifdchlv,grvfoqs,hbpoauuon,ijqr,jvcj,koxvare,onzevtwtpj,pnecw,qwavmq,snkeuzgyo,tbhp,utnfc,xdsuyrl\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [749 chars] 'z'] != 'buxxzyqmd,dfoothpcwk,dlmixw,fchteji,gyrg[115 chars]jtlk' : Should be buxxzyqmd,dfoothpcwk,dlmixw,fchteji,gyrgzom,hthwqyxjw,kgxzby,looohyb,modaqecn,mxxbfg,nfcjpbdco,okvd,qbfod,ravciwp,sbziqkbm,uhcjeaa,xfxau,yxpcpf,zbxkyp,zijjjtlk\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [814 chars] 'z'] != 'bygtduppd,dasxmw,difrjrzifv,dpbno,fojwbm[128 chars]uimr' : Should be bygtduppd,dasxmw,difrjrzifv,dpbno,fojwbmhkq,gsuatop,hhlekxo,ibtdwzgy,itwbp,obyipvx,pcbgkhexh,pxwowud,qbpacywiz,qhfrdmza,qrcb,ratphxih,vnmbqio,vprvtzyep,wbidua,ynaynbb,zuimr\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [559 chars] 'z'] != 'asmwvsr,bpmdqqzj,bxmja,dsib,enctixh,gpta[77 chars]qqnk' : Should be asmwvsr,bpmdqqzj,bxmja,dsib,enctixh,gptawdd,hvgayf,iivoyz,ketvmeax,oatj,pajbmjd,rbsmhpko,rexymg,rqpcpca,ybjl,yxnri,zxqqnk\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [374 chars] 'z'] != 'btqyxpvrf,cfgazzl,fyvxq,hsyzssvuvk,oujwf[40 chars]ohbr' : Should be btqyxpvrf,cfgazzl,fyvxq,hsyzssvuvk,oujwfpby,psuqgg,pvwzvzlqrt,txnivepa,vmxa,zphvohbr\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [929 chars] 'z'] != 'bhidfqipu,cbkhxeudi,dglhjt,dmahi,dmqypoy[151 chars]juzg' : Should be bhidfqipu,cbkhxeudi,dglhjt,dmahi,dmqypoye,dyimtpneu,fzolsn,glkfnxml,ikwqv,kfuygendm,lisridbb,mgkoq,naqun,ncmx,nljghxvrqs,opugs,orqz,srjhqyfw,tbsitq,twtoftykhc,vgnhsvhwz,wapfh,yeipvwni,yrvc,zqjuzg\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [449 chars] 'z'] != 'azzu,clsf,edndcn,fktg,gmdfjkil,jixu,lesx[55 chars]kjmx' : Should be azzu,clsf,edndcn,fktg,gmdfjkil,jixu,lesxd,lxoz,mjkuxglrpv,pvduj,qujkl,srqkgbwup,sxyhwrbt,vciyvxkjmx\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [714 chars] 'z'] != 'bedqrj,bxucpyw,cbgwsz,drblu,ehlk,ipeyklz[108 chars]fxsl' : Should be bedqrj,bxucpyw,cbgwsz,drblu,ehlk,ipeyklz,jqdjaewf,mgqkltvahe,ndmfcpg,odyesmhnmb,oyobiesuf,qzeifddnfc,tcjo,uenwtgga,uodywdd,vzuy,wwdqaro,ysokgt,yycibfxsl\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [364 chars] 'y'] != 'anseosscdd,ihyvwvglaq,kfwl,pbei,pjgxoau,[38 chars]dtsa' : Should be anseosscdd,ihyvwvglaq,kfwl,pbei,pjgxoau,qnstdaxiw,sdbephtfuk,ttlp,wunakihr,yhadtsa\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [709 chars] 'z'] != 'asuleb,ayvxllsu,fecujvfon,feyxdoszwa,fyo[107 chars]ztyp' : Should be asuleb,ayvxllsu,fecujvfon,feyxdoszwa,fyoyxljlo,jbwdnoks,kkxr,nmplxj,oyqbb,pazlnj,qxcnakr,rkddfle,rxygqwqo,sczl,usoedjwzfq,vfzicpmvby,wgwq,xntpv,yonztyp\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [439 chars] 'z'] != 'cmoxew,eoms,eozqptyn,guzeq,irkobgosg,jru[53 chars]zrhn' : Should be cmoxew,eoms,eozqptyn,guzeq,irkobgosg,jruveczm,lzxnow,nfrxgzj,ozpeb,spimmoifo,whbqe,wyktxagdy,zrhn\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', 'b', 'c', [209 chars] 'z'] != 'dtjvb,gliy,gocylnmhe,kyzntt,lpekvnm,rgecfomi,zfggqr' : Should be dtjvb,gliy,gocylnmhe,kyzntt,lpekvnm,rgecfomi,zfggqr\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [404 chars] 'z'] != 'cqbmxiiw,eaktdrvxty,fnfirydq,mhjn,myzpwu[46 chars]qtba' : Should be cqbmxiiw,eaktdrvxty,fnfirydq,mhjn,myzpwu,satksfvxgu,sfvkm,tidfjj,tuszxbhl,wotaz,yjvd,zqtba\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [494 chars] 'z'] != 'efys,esvjmcaf,ftjgxbob,hfqsxowtz,hifj,io[64 chars]lcil' : Should be efys,esvjmcaf,ftjgxbob,hfqsxowtz,hifj,ioyl,jjromkrbbn,oivc,rykcjhz,uedhwamtct,wfopi,yavb,ybnraqjvht,zjfqlcil\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [919 chars] 'z'] != 'clzijmj,eswmnefkbm,eurd,fkzf,gpjzg,hlxuy[149 chars]cxsg' : Should be clzijmj,eswmnefkbm,eurd,fkzf,gpjzg,hlxuyishr,imgcjphcsw,kbsajnfjod,ndqsmycim,nkpgfnj,ogazdwur,peuwnazm,qbrtdqcywa,qrrnjhll,rehnzcvku,ryokgu,satszzrd,svokndvzfn,ujskld,vgrrp,xowruumzr,zlgmqfcxsg\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [759 chars] 'z'] != 'anybi,bppcpz,hbuncvxz,jljbl,jpcrblrhb,kr[117 chars]fylm' : Should be anybi,bppcpz,hbuncvxz,jljbl,jpcrblrhb,krrtkb,limttkkj,mabtalsokn,myqow,opmfvdgyig,osxiqjn,povvsvur,qyueeuazw,qzbpq,spacovjs,txqnjbpze,tzavri,vbdtqrxlf,xsvbmwfylm\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'b', [209 chars] 'z'] != 'bmiwutnfvk,cfhrwj,elnzjam,eomtn,feyamsbg,nphnyyloyt' : Should be bmiwutnfvk,cfhrwj,elnzjam,eomtn,feyamsbg,nphnyyloyt\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [364 chars] 'z'] != 'ftxsnykz,isjte,kjteky,sctstq,skakh,syplr[38 chars]fgdf' : Should be ftxsnykz,isjte,kjteky,sctstq,skakh,syplrqiu,trzjelsn,ukjgtlqnx,xlnf,zejovbz,zxfgdf\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', 'b', 'b', 'b', 'c', 'e', [104 chars] 'y'] != 'bxsbmiucf,nlbh,ryqxye,ytjnhwil' : Should be bxsbmiucf,nlbh,ryqxye,ytjnhwil\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [274 chars] 'z'] != 'eceanuopq,fwelt,imiumjvf,izvgaj,kows,lxo[20 chars]xvpm' : Should be eceanuopq,fwelt,imiumjvf,izvgaj,kows,lxowsj,mgun,nawuladerl,xvpm\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', 'a', [284 chars] 'z'] != 'bdteuy,drfglmyl,ibxbreau,jwgyhmbm,oypzo,[22 chars]gjek' : Should be bdteuy,drfglmyl,ibxbreau,jwgyhmbm,oypzo,qaabvrvv,scefwktu,snekgjek\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "....................................................................................................\n", "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'b', [174 chars] 'z'] != 'agqpkhl,gmuyintg,lhmxe,mmbzznp,oxar,sxonhxzw' : Should be agqpkhl,gmuyintg,lhmxe,mmbzznp,oxar,sxonhxzw\n", + "Ran 100 tests in 0.366s\n", "\n", + "OK\n" + ] + } + ], + "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." + ] + }, + { + "cell_type": "code", + "execution_count": 151, + "metadata": {}, + "outputs": [], + "source": [ + "def check_pass(password):\n", + " # at least 8 characters\n", + " if len(password) <= 8:\n", + " return False\n", + " # at least one lower case\n", + " if password.isupper() == True:\n", + " return False \n", + " # at least one upper case\n", + " if password.islower() == True:\n", + " return False \n", + " # at least one number\n", + " if password.isalpha() == True:\n", + " return False \n", + " # at least one special character\n", + " if password.isalnum() == True:\n", + " return False\n", + " return True" + ] + }, + { + "cell_type": "code", + "execution_count": 152, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "False" + ] + }, + "execution_count": 152, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "password = \"jolHgyf6587_kjndfgewgwefy\"\n", + "password.isalpha()" + ] + }, + { + "cell_type": "code", + "execution_count": 153, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "False" + ] + }, + "execution_count": 153, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "password.isalnum()" + ] + }, + { + "cell_type": "code", + "execution_count": 154, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "False" + ] + }, + "execution_count": 154, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "password.isupper()" + ] + }, + { + "cell_type": "code", + "execution_count": 155, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 155, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "check_pass(password)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + " " + ] + }, + { + "cell_type": "code", + "execution_count": 131, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + ".................FF....F.F....FF...FF....F..F..........F............F....F...F.......FF..FF....F....\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [1014 chars] 'z'] != 'acxvavvfp,bqstfvbua,dzclrsaftc,fogzifp,f[168 chars]szpg' : Should be acxvavvfp,bqstfvbua,dzclrsaftc,fogzifp,fxmsai,jivbqmej,jtwtwi,jvyphl,jynmkmyr,jzncqps,kceurdn,khvobt,levhxcglil,ptlhaat,rxytbtgoz,shmbuqim,vdlgnzdw,vhevamy,vhufhu,vsojgiz,whqkqevdym,wpebcyozz,xelrcoiet,xvaflaszpg\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [449 chars] 'z'] != 'ahvjelx,bpuiirws,ccqrzdfb,dqgovdj,foivz,[55 chars]snxn' : Should be ahvjelx,bpuiirws,ccqrzdfb,dqgovdj,foivz,nzfighixla,qttdqifh,sankpufl,vlrhfpkl,wmrdi,wusajei,xwvsnxn\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', 'a', 'b', 'c', 'd', 'e', [104 chars] 'z'] != 'cwoq,iaplgelq,zdnwri,zmmtqsfpb' : Should be cwoq,iaplgelq,zdnwri,zmmtqsfpb\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [499 chars] 'z'] != 'asdbmphuf,bumvuksp,cauk,irvwgeaafv,jogba[65 chars]bjrk' : Should be asdbmphuf,bumvuksp,cauk,irvwgeaafv,jogba,jrglsrwz,lklpcsxa,mowpgxpl,mpznmq,qmeoqt,upytx,uudeyyw,weks,zxvcbjrk\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', 'a', 'c', 'c', 'd', [134 chars] 'z'] != 'qfzr,tddc,xpgafs,xxjiictxq,zlsrryisj' : Should be qfzr,tddc,xpgafs,xxjiictxq,zlsrryisj\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [944 chars] 'z'] != 'awvewha,cewasmja,cxubxqqk,ddsubz,evrgxmn[154 chars]fbmg' : Should be awvewha,cewasmja,cxubxqqk,ddsubz,evrgxmn,exegpjogqx,flfrj,fvfjryk,geuuxoecr,gkttuoef,hric,igoivk,jbfkzs,kiuxsyczo,kqgq,ljrknsbiu,lqyrcxz,nqjbc,ocezpp,omwx,pqsoez,rsgkcog,skcpfkg,sxvctnvnd,yzucpwfbmg\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [434 chars] 'z'] != 'aistpw,flba,gzvfdmez,ilejpg,ivxzggk,jbtz[52 chars]jdlc' : Should be aistpw,flba,gzvfdmez,ilejpg,ivxzggk,jbtzshpq,mbuajqk,pwoweou,rzzvb,tnrnm,ubiqc,ytkesqa,zbyyfjdlc\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'a', [214 chars] 'z'] != 'iispjtxrim,ilrjitqk,kuvmkzq,uhmaaznaq,vdrkql,xnuwgze' : Should be iispjtxrim,ilrjitqk,kuvmkzq,uhmaaznaq,vdrkql,xnuwgze\n", + "AssertionError: False != True : Should be True\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [494 chars] 'z'] != 'cibbes,hmzcwly,hnve,hpmm,hsrmetsep,kyfwo[64 chars]nmga' : Should be cibbes,hmzcwly,hnve,hpmm,hsrmetsep,kyfwooecm,lwifsi,mfvm,mprdeoe,owanpw,pjrvl,pzygjbg,qwdyk,rnrxzx,tqxwsnmga\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [849 chars] 'z'] != 'bkme,cmsboniuu,fgmey,hbdjxlzxqg,hejkdgf,[135 chars]praz' : Should be bkme,cmsboniuu,fgmey,hbdjxlzxqg,hejkdgf,hqqjqaumb,hvoo,kmckhbt,lhfrlmv,lhlfjxnbla,ljpcwizu,mwnbvanpn,nmlm,ntusvysmx,ozenshmac,qbdfqjh,usaljotpvc,wabuyaqqhl,whwj,wkageuywnx,ygtpraz\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [739 chars] 'z'] != 'aqpef,azxg,banouslsoy,btdb,gmwximt,iffrg[113 chars]npdm' : Should be aqpef,azxg,banouslsoy,btdb,gmwximt,iffrgdvniu,jcrm,mmdjdqlrfl,mmyuamfoxy,ncruqreg,pdoyjrwe,quwtuejbh,togqbdwy,vcbxejucal,vyxshhgt,wdrokymj,xocxvxmtdj,yrvnpdm\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [474 chars] 'z'] != 'bumzboy,cenersuxcr,eqlpududz,gorw,heqlhb[60 chars]tode' : Should be bumzboy,cenersuxcr,eqlpududz,gorw,heqlhbbcam,lqwgddnh,rzpnmqxwu,snlbgayhsf,sunhrymo,tllbgbf,vclhe,vxtode\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [464 chars] 'z'] != 'bbfqwn,hifvn,hykwfahghd,moduh,nzsvhovmh,[58 chars]tcga' : Should be bbfqwn,hifvn,hykwfahghd,moduh,nzsvhovmh,olmr,oujuwv,qcsebdm,seeeabg,sreqprbb,tlgftyvs,xghbkgt,ymowtcga\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'b', 'b', [244 chars] 'z'] != 'kiyosnybb,lzgdlfdrsk,oyjdvutdg,shwzivs,v[14 chars]gznc' : Should be kiyosnybb,lzgdlfdrsk,oyjdvutdg,shwzivs,vwgalgvy,xvspgrgznc\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [799 chars] 'z'] != 'aojy,bttyictb,coshk,ghgy,imfjjgdjg,imkdw[125 chars]yrjm' : Should be aojy,bttyictb,coshk,ghgy,imfjjgdjg,imkdwpw,jbojai,kopfrpqbuh,kqbqk,ktmmodfra,mkix,mnecw,njhixm,njywcos,obdyofomor,okvqkp,olfrkft,otxvxqu,pcfqcgk,uzbruserp,wtjlqdhqo,yrjm\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [604 chars] 'z'] != 'dsiietj,ewtqbiyqd,fmfurwme,hwir,ihtmvjnx[86 chars]yxml' : Should be dsiietj,ewtqbiyqd,fmfurwme,hwir,ihtmvjnxd,jkeni,luwwmnt,ojpyyzi,osjwe,qizzrplxft,qpapblaufd,qtcuhx,tkovezvejb,vajgd,yikfnsfal,yxml\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [419 chars] 'z'] != 'alsmzvsco,fbibitqu,gdnbxypxl,kpfpbwex,kt[49 chars]vydy' : Should be alsmzvsco,fbibitqu,gdnbxypxl,kpfpbwex,ktvgmsevi,ojznudol,olzs,qnidkckffg,qyltjxts,vgclbn,vydy\n", + "AssertionError: False != True : Should be True\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [689 chars] 'z'] != 'bdkngg,eoyolbmu,ewihcgkmi,eybjl,gcjikjrk[103 chars]zchu' : Should be bdkngg,eoyolbmu,ewihcgkmi,eybjl,gcjikjrk,hjmdfxymff,itwqelb,junbc,peeukozp,puerbymo,qbkxfyal,rkjiaea,saty,yqvmu,ywwopcpfil,zhhnw,zregdqtcn,zujfzchu\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [789 chars] 'z'] != 'bnfqcxsqsi,cadcsp,dryj,dtewvnn,hrnar,inc[123 chars]zkog' : Should be bnfqcxsqsi,cadcsp,dryj,dtewvnn,hrnar,inckirg,iwgixj,jpbithfp,jslyeiwzd,kwfuagzrq,lzgeeb,mrerhirj,mtjnrvwz,ocxaaii,pesrip,pwdnuw,vjjngl,wclki,wjhbbclt,xlflgekhh,zemzkog\n", + "AssertionError: True != False : Should be False\n", "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [644 chars] 'z'] != 'accbw,akesytgs,brtoyek,diskmy,ecfnqsv,gj[94 chars]lxsb' : Should be accbw,akesytgs,brtoyek,diskmy,ecfnqsv,gjhaeogx,jlfi,kwhgwthdt,lczqbf,obukwhe,qywynnojg,spfqarlfc,sydsysvynw,tikrgl,xhpmia,yvosr,zvfpxglxsb\n", + "Ran 100 tests in 0.323s\n", "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [599 chars] 'z'] != 'cqdaxyk,dgvyonv,dtjk,huhpnwc,jbpsskraqj,[85 chars]kxzs' : Should be cqdaxyk,dgvyonv,dtjk,huhpnwc,jbpsskraqj,kvrell,ltvidtt,mfwa,pbfaazxc,qiggyzjsuo,rsfxrgj,rvwwzhsro,vbiwwiws,vwbdvnfo,zpcklr,zvkxzs\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [459 chars] 'z'] != 'akbfnjzp,duoai,ffstd,gkdkudv,hvtlxuym,iv[57 chars]zohb' : Should be akbfnjzp,duoai,ffstd,gkdkudv,hvtlxuym,ivupqaymnb,jwjxzv,mpbmydve,nvlxqyfeqr,owcl,pmdnb,xhhevu,yzjzohb\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [879 chars] 'z'] != 'asou,bdzskfjzvp,dwhp,ebzoid,eicugvdpkj,e[141 chars]ixjd' : Should be asou,bdzskfjzvp,dwhp,ebzoid,eicugvdpkj,eyclxcfvt,fboquvwz,finzn,jmghdwcxu,jxutsc,kzsuanags,lcrupbkf,ltzpit,qideyqm,qqfgeyepn,rnexhro,tlwaruujvn,vevu,vndmnkot,xbtmaf,xpxtyuflio,zogycixjd\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [809 chars] 'z'] != 'bbzyk,ckvztvpqhy,cnlmzgg,cwxmiol,edhxwwa[127 chars]ybge' : Should be bbzyk,ckvztvpqhy,cnlmzgg,cwxmiol,edhxwwajh,eexpngfq,eydwdzosql,grxgfreii,gunzbehfdd,jlullm,njijopvp,otrsvg,qnhwyxhhc,qnucb,qzmblzo,rfrpj,wcmwrdhc,xunejkbuom,yqvmc,ysyzybge\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [299 chars] 'z'] != 'apicwwakwa,biydukty,dpgchpg,msxueoru,nfn[25 chars]aimt' : Should be apicwwakwa,biydukty,dpgchpg,msxueoru,nfnj,qtul,uygan,xcuxzz,zuofoaimt\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', 'b', 'd', 'e', 'e', [159 chars] 'z'] != 'evyxjjzp,fxuo,krqginwlm,thbhyzt,zemekzttd' : Should be evyxjjzp,fxuo,krqginwlm,thbhyzt,zemekzttd\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', 'a', 'a', 'b', 'b', 'c', [129 chars] 'z'] != 'gaveerj,pwmcgzvbmn,rptgqouaw,vkbqrk' : Should be gaveerj,pwmcgzvbmn,rptgqouaw,vkbqrk\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', 'a', 'b', 'b', 'b', 'b', [99 chars] 'z'] != 'axncboute,eznb,kyhb,llnbshitf' : Should be axncboute,eznb,kyhb,llnbshitf\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [294 chars] 'z'] != 'aguxfwzcm,dcidw,fikdq,gbspusp,hmolh,krvk[24 chars]yptk' : Should be aguxfwzcm,dcidw,fikdq,gbspusp,hmolh,krvkn,mdmlpsir,mowlld,ruwvsqyptk\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [699 chars] 'z'] != 'afvtbacihp,ajdjfl,cspfzq,egdiwr,iijh,iwm[105 chars]soip' : Should be afvtbacihp,ajdjfl,cspfzq,egdiwr,iijh,iwmvxucsx,iyzo,jhxnlr,mioagfthv,mttyoioh,nqurvrjyje,rrlsmmi,uglf,unnjzatyrc,vdwsopijlk,xcqyp,xqmwccps,zfcvfpsoip\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'a', [194 chars] 'z'] != 'afjatz,gygsts,mjpwjvy,qyeeadeus,uvptx,wpmtvkxgkh' : Should be afjatz,gygsts,mjpwjvy,qyeeadeus,uvptx,wpmtvkxgkh\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [564 chars] 'z'] != 'ceoyvjvqx,cjyxixldo,emsqse,enycdzm,eqjzs[78 chars]wcrz' : Should be ceoyvjvqx,cjyxixldo,emsqse,enycdzm,eqjzsufjow,jwfdoaplb,kjqanthb,korli,olqkwqn,shnepj,tdkrcdp,tilyehuaqo,vznjcjvhww,yswcrz\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [744 chars] 'z'] != 'ajzzsu,awofkuujdg,dfqgcyxgc,exiqf,ezuj,h[114 chars]yrxl' : Should be ajzzsu,awofkuujdg,dfqgcyxgc,exiqf,ezuj,hukyopoer,idjhdchrwo,jwdfigvzz,kcwd,khxsvsz,kwakvfd,nvimopjvu,rrlglmo,trpplqhj,uhmlp,ujfhpie,xqzqj,xqzrd,yqkmkiqvn,yrxl\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', 'a', [274 chars] 'z'] != 'ifuq,okoeaozapy,qddhhhtb,sxemqsdvp,urwtp[20 chars]wsot' : Should be ifuq,okoeaozapy,qddhhhtb,sxemqsdvp,urwtpqc,vzpjy,wfituio,xnawsot\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [374 chars] 'z'] != 'bbqgznpl,ftbvqbqe,hbpstlh,lvtgalcmm,poyb[40 chars]yhsm' : Should be bbqgznpl,ftbvqbqe,hbpstlh,lvtgalcmm,poybfhzj,terxdid,uieod,wbwdzz,xxdcxcyqrl,zzayhsm\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [764 chars] 'z'] != 'akoaqngawy,ayvqw,cascws,eibb,gtcj,hhjnbr[118 chars]izno' : Should be akoaqngawy,ayvqw,cascws,eibb,gtcj,hhjnbrfjjl,hmxoxs,ijhl,jqpog,jxnd,kgxuclf,mfohjjo,njmbwpe,nrtllbumd,phwqk,qingwflzde,svycgdo,tmtztdpjr,ukyhfdap,vhdrevkd,ydzizno\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [594 chars] 'z'] != 'bannda,bqfpe,dybieur,fhnh,huvu,ieuefmy,i[84 chars]zwdv' : Should be bannda,bqfpe,dybieur,fhnh,huvu,ieuefmy,ighxdqoww,kpunh,lymftrtc,miuddungz,nxaq,pgosgjl,pqnvvucnp,thgvsbxigf,vmvpl,zfgibphe,zzwdv\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [474 chars] 'z'] != 'bnoswzj,clxllgsaa,cmnpxkn,epfbridiv,hsgn[60 chars]dkts' : Should be bnoswzj,clxllgsaa,cmnpxkn,epfbridiv,hsgn,lojkl,lxcffzp,mjsrdirbgt,sjzgryh,srvvla,vvhfkkv,xigvooa,xiudkts\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [479 chars] 'z'] != 'cmbnbtvm,cwdhncmi,icygtcdql,ioahntdr,nfq[61 chars]lftr' : Should be cmbnbtvm,cwdhncmi,icygtcdql,ioahntdr,nfqhd,nkzz,npwpvehea,peieljbyml,rzijb,vfunu,vvbczj,xdovntvoi,yawlftr\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', 'a', 'a', [269 chars] 'z'] != 'eomqg,fdqw,pzzgkuibtm,uedwvaixnx,ugsffei[19 chars]rqey' : Should be eomqg,fdqw,pzzgkuibtm,uedwvaixnx,ugsffeilbc,uonptcsbay,ywglrqey\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [844 chars] 'z'] != 'gemimxs,heqzr,iqbo,jstof,jwvvwfm,khkqact[134 chars]tizm' : Should be gemimxs,heqzr,iqbo,jstof,jwvvwfm,khkqactbkw,lapv,lbwdz,lsduk,oixo,qaqhgoyaby,snxg,szitrvjhfc,tserwflzw,tylvfb,uledf,uoinzjiep,wztuabvtj,xbybonjb,xnheaf,xrckjypt,zoffriuqwp,zxtizm\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [569 chars] 'z'] != 'aonhjp,dhubzwsrr,fwhstxr,huitomz,jhudujd[79 chars]wmft' : Should be aonhjp,dhubzwsrr,fwhstxr,huitomz,jhudujdkx,kodvl,mjrwbcqvb,moruiubz,osvfuwuvd,tldphdql,wpsm,xvqfexqim,zghrdnacrk,zlyrvpwmft\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'a', [189 chars] 'z'] != 'gbbtod,gzpejcpcnn,lahp,tjawyeohxx,twydlx,wcarmj' : Should be gbbtod,gzpejcpcnn,lahp,tjawyeohxx,twydlx,wcarmj\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [514 chars] 'z'] != 'acnvfj,cvpfqpu,diyyr,dlpgyeq,edocfzqy,hq[68 chars]ozqg' : Should be acnvfj,cvpfqpu,diyyr,dlpgyeq,edocfzqy,hqbybbm,iyzourq,lyvbvjbzml,ofvktm,skxqoplqd,ssmo,suymxkykx,wgmnkeyf,wyozqg\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'd', [234 chars] 'z'] != 'ajtvfxvgrd,aljhtwdmnl,leeyglnepw,rjjj,xgwfkfm,ytmminzmfq' : Should be ajtvfxvgrd,aljhtwdmnl,leeyglnepw,rjjj,xgwfkfm,ytmminzmfq\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [659 chars] 'z'] != 'cgejxpt,ckxfqax,dqmqavmhl,eulls,fjdyudvh[97 chars]xssq' : Should be cgejxpt,ckxfqax,dqmqavmhl,eulls,fjdyudvhjz,fztvy,hyrnqjembo,meyxlcewf,muxonxy,pswucoivz,pvyvahpry,rpqmil,rxotlwrvjj,ryba,wpllzqahbd,xetz,xssq\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [654 chars] 'z'] != 'dtsdry,edvtcojmgl,enrkxyhpi,fpudhdxrlm,f[96 chars]pyau' : Should be dtsdry,edvtcojmgl,enrkxyhpi,fpudhdxrlm,fzwuyajmkt,gecskvrzm,jfopjbank,jwwjkuxsd,kderyxh,nvtxcg,pahurtpvx,qfmympxcg,rzbnrhv,wijmfzdek,zespyau\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [1079 chars] 'z'] != 'chwgiskltq,cqzoqzo,dldhrtykbh,dpmszejdfx[181 chars]rcdq' : Should be chwgiskltq,cqzoqzo,dldhrtykbh,dpmszejdfx,eeogeh,elmoakpc,eqpgsprr,fwuuoeignk,gpedzkigho,kmrbuditvg,lpfkiag,lsuulvctap,nagtuus,nfjgikhj,nuzaquagi,ouwamiypp,qixqmky,qstpzt,rfglbbtxbg,sxafkthom,tphqiw,twopuizbxj,ubqejtd,zyforcdq\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [914 chars] 'z'] != 'alxqpse,blukjspebb,eoxhjytp,esbpgtyq,etn[148 chars]undf' : Should be alxqpse,blukjspebb,eoxhjytp,esbpgtyq,etnlec,fffwe,gwxcaon,ixcsesxs,jehtkbdq,jpguij,nabkvwebz,nopaqv,oawen,pfkauules,psnw,qufvfmgb,ranhgtjpgc,rvwn,sblprzgy,tqdvu,tzbiv,uolfuvzb,uqfcdholk,vfundf\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [264 chars] 'z'] != 'cncdx,irbuojw,nudpw,qnwzkx,rifhsdik,rpar[18 chars]jfgs' : Should be cncdx,irbuojw,nudpw,qnwzkx,rifhsdik,rpartx,tjlo,wbmmpeha,xjfgs\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', 'a', [264 chars] 'z'] != 'epxu,keqtcb,kyalwkfwto,lcdnjav,omhpyjkpw[18 chars]bhmx' : Should be epxu,keqtcb,kyalwkfwto,lcdnjav,omhpyjkpw,ppkxc,vqueolaw,zcbhmx\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'e', 'e', [159 chars] 'z'] != 'nakel,prltl,qvvqusg,uerhylx,volxpeh,vznlf' : Should be nakel,prltl,qvvqusg,uerhylx,volxpeh,vznlf\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', 'b', 'd', 'e', 'f', [124 chars] 'y'] != 'dtqvjq,eutqk,fpprjpt,jnjrqtjy,nibv' : Should be dtqvjq,eutqk,fpprjpt,jnjrqtjy,nibv\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [439 chars] 'z'] != 'bhxgg,fxokoe,hcgvyj,ijzxfaw,itthl,kowyyh[53 chars]todz' : Should be bhxgg,fxokoe,hcgvyj,ijzxfaw,itthl,kowyyh,qshd,qtoz,ublcyhaov,usfgiq,vlbhljmw,vyutptzq,wdzy,xotodz\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [384 chars] 'z'] != 'ccrb,dhazeptamx,jttri,kmob,migsdjxr,mknz[42 chars]qdlv' : Should be ccrb,dhazeptamx,jttri,kmob,migsdjxr,mknzcssf,mtpwpdd,nzslaw,qfxpdces,qqqneo,sijlnsqdlv\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', 'a', 'a', [244 chars] 'z'] != 'aehztarh,fpvfbqso,lzife,qpvakivjap,syked[14 chars]vsmw' : Should be aehztarh,fpvfbqso,lzife,qpvakivjap,sykedxzofs,vocqfqh,vsmw\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [439 chars] 'z'] != 'bfkhmlpom,boin,clpoffgjb,dcqexfj,dloxj,h[53 chars]bnem' : Should be bfkhmlpom,boin,clpoffgjb,dcqexfj,dloxj,hyvrcswel,maxbk,omumahgqx,peaf,pjpobhzrp,svit,tmao,xhpbnem\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [864 chars] 'z'] != 'bgrkrb,bnlzdy,buqdemigmx,cdnttpwy,cfkf,e[138 chars]hucp' : Should be bgrkrb,bnlzdy,buqdemigmx,cdnttpwy,cfkf,estbyjurcl,eutbmckqe,gmotbxuje,guiajnnw,iplatwv,lteyqs,mnalwhfq,nbgdhb,pedtshzwza,poyjgqnfur,qufp,thxhtskuh,uaxe,uudeeh,uvcp,vtvnk,wlfbdn,xhucp\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', 'a', 'b', 'c', 'c', 'c', [114 chars] 'z'] != 'dzbdpncndm,edatunjcf,ljchw,yszmv' : Should be dzbdpncndm,edatunjcf,ljchw,yszmv\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [984 chars] 'z'] != 'aeuefx,bjai,dfncpkrki,dlcl,grug,hbhgney,[162 chars]snkh' : Should be aeuefx,bjai,dfncpkrki,dlcl,grug,hbhgney,ibulc,iclxipstu,ieccwtag,jczsbarz,jiboarp,mgefectir,miihznuxc,ndegdbodp,qmesmumwi,rjeabmgtqf,rztgsuuvr,shmtftkog,sjovaxivtg,smuppku,tihaaxre,wtrizm,xuzlsff,zalmigsnkh\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'b', 'c', [194 chars] 'y'] != 'hdmdso,hpeesjwjl,qjbywh,tymevcqmc,yirgqa,yscermj' : Should be hdmdso,hpeesjwjl,qjbywh,tymevcqmc,yirgqa,yscermj\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [384 chars] 'z'] != 'crshxz,ecsihe,fpydeuh,oapkapxuqg,okgtbyp[42 chars]wuan' : Should be crshxz,ecsihe,fpydeuh,oapkapxuqg,okgtbypupk,patcobz,pzqrdouul,qcvkgwh,rygavhgrpq,vwuan\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [664 chars] 'z'] != 'autxaiyfq,ccpegikvti,czdwjj,gagedtggbl,g[98 chars]yuwq' : Should be autxaiyfq,ccpegikvti,czdwjj,gagedtggbl,gfyswk,gwrksyjaa,ijanljm,ityrl,mkuqc,mwddujalt,opklsq,plngtn,pvygzr,veogomg,xsbtmwdiyl,xtcptv,yknqqyuwq\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [844 chars] 'z'] != 'afghtybh,byslggxe,dnduk,dzbdq,ficwwwnsw,[134 chars]ycyx' : Should be afghtybh,byslggxe,dnduk,dzbdq,ficwwwnsw,gaxs,kzutfp,mazzdtqve,mkjnkuixah,mojjehpnkb,nppmwggwo,pbikealt,pbzl,pgkf,qvzsdpwld,twilepsi,uupkkggln,vemhlwdvq,wggbpeowpm,wsygnccmqp,ycyx\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [399 chars] 'z'] != 'aeskkx,cdxohlgmea,ioow,jzfl,kznitlwbm,mg[45 chars]dfrt' : Should be aeskkx,cdxohlgmea,ioow,jzfl,kznitlwbm,mgapliljax,nkdguefnu,pmzrchhdhe,tyfnjlyvq,vcsfhdfrt\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [644 chars] 'z'] != 'bfamylpi,bscdj,cznoqlaj,dtnmrzeb,ezea,ff[94 chars]xobz' : Should be bfamylpi,bscdj,cznoqlaj,dtnmrzeb,ezea,ffdcul,gvebep,hlyzath,jcpmzb,lnpdtrcrb,ndnc,pxhdort,rurkuuqs,spbs,uficmz,vrzcceygna,wxuxumnnbo,zxobz\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [759 chars] 'z'] != 'dorkax,dsomltx,fejp,govkuoj,gxatxer,ikda[117 chars]dwsm' : Should be dorkax,dsomltx,fejp,govkuoj,gxatxer,ikdadcxmc,mlhheo,oaby,ogfsjllxl,oofpcmnwq,pofqgq,rqkgk,tetk,tuzsj,tvprre,ubkcnmy,veqeppvm,vupzwped,wlpmyie,wqbwxmke,zapoqdwsm\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [939 chars] 'z'] != 'cnzcvis,dyvxhoym,ehcklwdw,ixqez,jehotyc,[153 chars]fxbq' : Should be cnzcvis,dyvxhoym,ehcklwdw,ixqez,jehotyc,jhacydmyq,liicvpkpka,motob,nghri,nwzdcq,ppvhkcww,qfddhyl,qowqlznmzp,rpqpobtcqg,snvynjlhg,tdhkrrfy,uvpjltejcr,vxglferku,wtag,xbhjya,xutjtvvdx,zanacc,zswawfxbq\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'b', 'b', 'c', [164 chars] 'z'] != 'bvbmzvl,frjfywzlo,hpgdp,jlgjzc,ydwe,zoilzy' : Should be bvbmzvl,frjfywzlo,hpgdp,jlgjzc,ydwe,zoilzy\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [394 chars] 'z'] != 'abdwdst,aphvjbf,bxwm,fddngvcrv,morbkzfh,[44 chars]wpou' : Should be abdwdst,aphvjbf,bxwm,fddngvcrv,morbkzfh,mvtegn,nusxu,phpcn,rmucm,uvxonug,vdeqvzdpgg,wpou\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [354 chars] 'z'] != 'cakdvenfuv,gnbgpjmkxn,guenoyenit,jdbzuj,[36 chars]fofh' : Should be cakdvenfuv,gnbgpjmkxn,guenoyenit,jdbzuj,kdcuvf,osjk,thmlhze,xfjpmkjki,znlsqhfofh\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [904 chars] 'z'] != 'ahjiodfgmk,bvwrvdoxl,cbvsfknp,dvaficgih,[146 chars]tyjz' : Should be ahjiodfgmk,bvwrvdoxl,cbvsfknp,dvaficgih,etfgzovfp,jbttixv,jdwgky,kovjwhpkf,kpujv,lemw,lfchvfgj,mtypifa,nyulentpqy,ootyni,pdvru,perykfyw,qyfkpn,rpqbtg,uhbpuhedqv,uikzhzj,xagng,xbyorbaz,zrtyjz\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [679 chars] 'z'] != 'bmtjn,dhuydtza,ecgknm,eibfjo,ejwg,fwml,i[101 chars]wnsi' : Should be bmtjn,dhuydtza,ecgknm,eibfjo,ejwg,fwml,ipvome,iucf,lgefpf,lhfpmn,muexgthfs,ofkggmx,ohqnvtn,spwyk,ubtrqqyha,wbglwwbl,yudmdhpm,zbqsuobynl,zunmjwnsi\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'b', 'b', [209 chars] 'y'] != 'axdixipb,lhky,nsjqdjco,ofoniovkp,rkbquosbrc,xceoubi' : Should be axdixipb,lhky,nsjqdjco,ofoniovkp,rkbquosbrc,xceoubi\n", - "\n", - "----------------------------------------------------------------------\n", - "Ran 100 tests in 0.338s\n", - "\n", - "FAILED (failures=100)\n" + "FAILED (failures=19)\n" ] } ], "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": null, - "metadata": {}, - "outputs": [], - "source": [ - "def check_pass(string):\n", - " pass" + "test_pass(check_pass)" ] }, { @@ -2529,10 +2081,7 @@ "execution_count": null, "metadata": {}, "outputs": [], - "source": [ - "# This will test your function \n", - "test_pass(check_pass)" - ] + "source": [] } ], "metadata": { diff --git a/main.ipynb b/main.ipynb index f639aa3..5e06275 100644 --- a/main.ipynb +++ b/main.ipynb @@ -524,6 +524,7 @@ "metadata": {}, "outputs": [], "source": [ + "## manera de hacerlo con librerías\n", "def mode_counter(arr) :\n", " m = max([arr.count(a) for a in arr])\n", " return [x for x in arr if arr.count(x) == m][0] if m>1 else None" @@ -1614,7 +1615,7 @@ }, { "cell_type": "code", - "execution_count": 79, + "execution_count": 94, "metadata": {}, "outputs": [], "source": [ @@ -1628,7 +1629,7 @@ }, { "cell_type": "code", - "execution_count": 77, + "execution_count": 91, "metadata": {}, "outputs": [ { @@ -1637,7 +1638,7 @@ "text": [ "..............................\n", "----------------------------------------------------------------------\n", - "Ran 30 tests in 0.058s\n", + "Ran 30 tests in 0.116s\n", "\n", "OK\n" ] @@ -1659,50 +1660,96 @@ }, { "cell_type": "code", - "execution_count": 80, + "execution_count": 149, "metadata": {}, "outputs": [], "source": [ "def sort_alpha(string):\n", - " # yo sólo quiero acomodar alfabéticamente la primera letra después de cada paréntesis\n", + " string+=\",\"\n", + " newlist=[]\n", + " word=\"\"\n", + " newword=\"\"\n", + " for letter in string.lower():\n", + " if letter ==\",\":\n", + " \n", + " newlist.append(word)\n", + " word=\"\"\n", + " else:\n", + " word+=letter\n", + " \n", + " newlist.sort()\n", " \n", - " return sorted(string, key = lambda x: x[0], reverse = False)" + " for elem in newlist:\n", + " newword+=\",\"+elem\n", + " \n", + " newword2=newword[1:]\n", + " return newword2" ] }, { "cell_type": "code", - "execution_count": 84, + "execution_count": 92, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "[',', ',', 'a', 'a', 'c', 'e', 'l', 'l', 'l', 'o', 'r', 't', 'u', 'y']" + "[' ',\n", + " ' ',\n", + " ',',\n", + " ',',\n", + " 'a',\n", + " 'a',\n", + " 'c',\n", + " 'e',\n", + " 'l',\n", + " 'l',\n", + " 'l',\n", + " 'o',\n", + " 'r',\n", + " 't',\n", + " 'u',\n", + " 'y']" ] }, - "execution_count": 84, + "execution_count": 92, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "a_string = \"call,you,later\"\n", + "a_string = \"call, you, later\"\n", "sorted_characters = sorted(a_string)\n", "sorted_characters" ] }, { "cell_type": "code", - "execution_count": 85, + "execution_count": 93, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "[',', ',', 'a', 'a', 'c', 'e', 'l', 'l', 'l', 'o', 'r', 't', 'u', 'y']" + "[' ',\n", + " ' ',\n", + " ',',\n", + " ',',\n", + " 'a',\n", + " 'a',\n", + " 'c',\n", + " 'e',\n", + " 'l',\n", + " 'l',\n", + " 'l',\n", + " 'o',\n", + " 'r',\n", + " 't',\n", + " 'u',\n", + " 'y']" ] }, - "execution_count": 85, + "execution_count": 93, "metadata": {}, "output_type": "execute_result" } @@ -1713,842 +1760,320 @@ }, { "cell_type": "code", - "execution_count": 81, + "execution_count": 150, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', 'a', 'a', 'a', 'c', [179 chars] 'z'] != 'gtlfooaslr,toiz,tpkthrvayf,wyoyroe,xuctrthaio' : Should be gtlfooaslr,toiz,tpkthrvayf,wyoyroe,xuctrthaio\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', 'a', 'b', 'b', 'c', 'c', [89 chars] 'x'] != 'basictu,cuxf,hfrolrvmk,lebc' : Should be basictu,cuxf,hfrolrvmk,lebc\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [559 chars] 'z'] != 'awjmoia,deukkgp,dfuqry,gpfclgzdou,jjhq,j[77 chars]mutd' : Should be awjmoia,deukkgp,dfuqry,gpfclgzdou,jjhq,jvziauvf,kslmwx,ljyvai,lryuiafks,ndedhsnv,pulz,puuxhmgzqw,qbifmidfj,rhbe,umkzqmutd\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [329 chars] 'z'] != 'exmkaecxzd,faqnpeu,gvfdg,jhamugtg,ndyhjh[31 chars]yeja' : Should be exmkaecxzd,faqnpeu,gvfdg,jhamugtg,ndyhjhgynu,pnpyov,rfjlyoh,rfnb,rgso,vyeja\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [754 chars] 'z'] != 'atyng,bwjddn,bwnclvnb,coyxjowp,cpuylriyn[116 chars]uyrl' : Should be atyng,bwjddn,bwnclvnb,coyxjowp,cpuylriyn,dnalybx,eirdb,ekjjly,ffifdchlv,grvfoqs,hbpoauuon,ijqr,jvcj,koxvare,onzevtwtpj,pnecw,qwavmq,snkeuzgyo,tbhp,utnfc,xdsuyrl\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [749 chars] 'z'] != 'buxxzyqmd,dfoothpcwk,dlmixw,fchteji,gyrg[115 chars]jtlk' : Should be buxxzyqmd,dfoothpcwk,dlmixw,fchteji,gyrgzom,hthwqyxjw,kgxzby,looohyb,modaqecn,mxxbfg,nfcjpbdco,okvd,qbfod,ravciwp,sbziqkbm,uhcjeaa,xfxau,yxpcpf,zbxkyp,zijjjtlk\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [814 chars] 'z'] != 'bygtduppd,dasxmw,difrjrzifv,dpbno,fojwbm[128 chars]uimr' : Should be bygtduppd,dasxmw,difrjrzifv,dpbno,fojwbmhkq,gsuatop,hhlekxo,ibtdwzgy,itwbp,obyipvx,pcbgkhexh,pxwowud,qbpacywiz,qhfrdmza,qrcb,ratphxih,vnmbqio,vprvtzyep,wbidua,ynaynbb,zuimr\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [559 chars] 'z'] != 'asmwvsr,bpmdqqzj,bxmja,dsib,enctixh,gpta[77 chars]qqnk' : Should be asmwvsr,bpmdqqzj,bxmja,dsib,enctixh,gptawdd,hvgayf,iivoyz,ketvmeax,oatj,pajbmjd,rbsmhpko,rexymg,rqpcpca,ybjl,yxnri,zxqqnk\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [374 chars] 'z'] != 'btqyxpvrf,cfgazzl,fyvxq,hsyzssvuvk,oujwf[40 chars]ohbr' : Should be btqyxpvrf,cfgazzl,fyvxq,hsyzssvuvk,oujwfpby,psuqgg,pvwzvzlqrt,txnivepa,vmxa,zphvohbr\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [929 chars] 'z'] != 'bhidfqipu,cbkhxeudi,dglhjt,dmahi,dmqypoy[151 chars]juzg' : Should be bhidfqipu,cbkhxeudi,dglhjt,dmahi,dmqypoye,dyimtpneu,fzolsn,glkfnxml,ikwqv,kfuygendm,lisridbb,mgkoq,naqun,ncmx,nljghxvrqs,opugs,orqz,srjhqyfw,tbsitq,twtoftykhc,vgnhsvhwz,wapfh,yeipvwni,yrvc,zqjuzg\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [449 chars] 'z'] != 'azzu,clsf,edndcn,fktg,gmdfjkil,jixu,lesx[55 chars]kjmx' : Should be azzu,clsf,edndcn,fktg,gmdfjkil,jixu,lesxd,lxoz,mjkuxglrpv,pvduj,qujkl,srqkgbwup,sxyhwrbt,vciyvxkjmx\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [714 chars] 'z'] != 'bedqrj,bxucpyw,cbgwsz,drblu,ehlk,ipeyklz[108 chars]fxsl' : Should be bedqrj,bxucpyw,cbgwsz,drblu,ehlk,ipeyklz,jqdjaewf,mgqkltvahe,ndmfcpg,odyesmhnmb,oyobiesuf,qzeifddnfc,tcjo,uenwtgga,uodywdd,vzuy,wwdqaro,ysokgt,yycibfxsl\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [364 chars] 'y'] != 'anseosscdd,ihyvwvglaq,kfwl,pbei,pjgxoau,[38 chars]dtsa' : Should be anseosscdd,ihyvwvglaq,kfwl,pbei,pjgxoau,qnstdaxiw,sdbephtfuk,ttlp,wunakihr,yhadtsa\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [709 chars] 'z'] != 'asuleb,ayvxllsu,fecujvfon,feyxdoszwa,fyo[107 chars]ztyp' : Should be asuleb,ayvxllsu,fecujvfon,feyxdoszwa,fyoyxljlo,jbwdnoks,kkxr,nmplxj,oyqbb,pazlnj,qxcnakr,rkddfle,rxygqwqo,sczl,usoedjwzfq,vfzicpmvby,wgwq,xntpv,yonztyp\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [439 chars] 'z'] != 'cmoxew,eoms,eozqptyn,guzeq,irkobgosg,jru[53 chars]zrhn' : Should be cmoxew,eoms,eozqptyn,guzeq,irkobgosg,jruveczm,lzxnow,nfrxgzj,ozpeb,spimmoifo,whbqe,wyktxagdy,zrhn\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', 'b', 'c', [209 chars] 'z'] != 'dtjvb,gliy,gocylnmhe,kyzntt,lpekvnm,rgecfomi,zfggqr' : Should be dtjvb,gliy,gocylnmhe,kyzntt,lpekvnm,rgecfomi,zfggqr\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [404 chars] 'z'] != 'cqbmxiiw,eaktdrvxty,fnfirydq,mhjn,myzpwu[46 chars]qtba' : Should be cqbmxiiw,eaktdrvxty,fnfirydq,mhjn,myzpwu,satksfvxgu,sfvkm,tidfjj,tuszxbhl,wotaz,yjvd,zqtba\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [494 chars] 'z'] != 'efys,esvjmcaf,ftjgxbob,hfqsxowtz,hifj,io[64 chars]lcil' : Should be efys,esvjmcaf,ftjgxbob,hfqsxowtz,hifj,ioyl,jjromkrbbn,oivc,rykcjhz,uedhwamtct,wfopi,yavb,ybnraqjvht,zjfqlcil\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [919 chars] 'z'] != 'clzijmj,eswmnefkbm,eurd,fkzf,gpjzg,hlxuy[149 chars]cxsg' : Should be clzijmj,eswmnefkbm,eurd,fkzf,gpjzg,hlxuyishr,imgcjphcsw,kbsajnfjod,ndqsmycim,nkpgfnj,ogazdwur,peuwnazm,qbrtdqcywa,qrrnjhll,rehnzcvku,ryokgu,satszzrd,svokndvzfn,ujskld,vgrrp,xowruumzr,zlgmqfcxsg\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [759 chars] 'z'] != 'anybi,bppcpz,hbuncvxz,jljbl,jpcrblrhb,kr[117 chars]fylm' : Should be anybi,bppcpz,hbuncvxz,jljbl,jpcrblrhb,krrtkb,limttkkj,mabtalsokn,myqow,opmfvdgyig,osxiqjn,povvsvur,qyueeuazw,qzbpq,spacovjs,txqnjbpze,tzavri,vbdtqrxlf,xsvbmwfylm\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'b', [209 chars] 'z'] != 'bmiwutnfvk,cfhrwj,elnzjam,eomtn,feyamsbg,nphnyyloyt' : Should be bmiwutnfvk,cfhrwj,elnzjam,eomtn,feyamsbg,nphnyyloyt\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [364 chars] 'z'] != 'ftxsnykz,isjte,kjteky,sctstq,skakh,syplr[38 chars]fgdf' : Should be ftxsnykz,isjte,kjteky,sctstq,skakh,syplrqiu,trzjelsn,ukjgtlqnx,xlnf,zejovbz,zxfgdf\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', 'b', 'b', 'b', 'c', 'e', [104 chars] 'y'] != 'bxsbmiucf,nlbh,ryqxye,ytjnhwil' : Should be bxsbmiucf,nlbh,ryqxye,ytjnhwil\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [274 chars] 'z'] != 'eceanuopq,fwelt,imiumjvf,izvgaj,kows,lxo[20 chars]xvpm' : Should be eceanuopq,fwelt,imiumjvf,izvgaj,kows,lxowsj,mgun,nawuladerl,xvpm\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', 'a', [284 chars] 'z'] != 'bdteuy,drfglmyl,ibxbreau,jwgyhmbm,oypzo,[22 chars]gjek' : Should be bdteuy,drfglmyl,ibxbreau,jwgyhmbm,oypzo,qaabvrvv,scefwktu,snekgjek\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'b', [174 chars] 'z'] != 'agqpkhl,gmuyintg,lhmxe,mmbzznp,oxar,sxonhxzw' : Should be agqpkhl,gmuyintg,lhmxe,mmbzznp,oxar,sxonhxzw\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [1014 chars] 'z'] != 'acxvavvfp,bqstfvbua,dzclrsaftc,fogzifp,f[168 chars]szpg' : Should be acxvavvfp,bqstfvbua,dzclrsaftc,fogzifp,fxmsai,jivbqmej,jtwtwi,jvyphl,jynmkmyr,jzncqps,kceurdn,khvobt,levhxcglil,ptlhaat,rxytbtgoz,shmbuqim,vdlgnzdw,vhevamy,vhufhu,vsojgiz,whqkqevdym,wpebcyozz,xelrcoiet,xvaflaszpg\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [449 chars] 'z'] != 'ahvjelx,bpuiirws,ccqrzdfb,dqgovdj,foivz,[55 chars]snxn' : Should be ahvjelx,bpuiirws,ccqrzdfb,dqgovdj,foivz,nzfighixla,qttdqifh,sankpufl,vlrhfpkl,wmrdi,wusajei,xwvsnxn\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', 'a', 'b', 'c', 'd', 'e', [104 chars] 'z'] != 'cwoq,iaplgelq,zdnwri,zmmtqsfpb' : Should be cwoq,iaplgelq,zdnwri,zmmtqsfpb\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "....................................................................................................\n", "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [499 chars] 'z'] != 'asdbmphuf,bumvuksp,cauk,irvwgeaafv,jogba[65 chars]bjrk' : Should be asdbmphuf,bumvuksp,cauk,irvwgeaafv,jogba,jrglsrwz,lklpcsxa,mowpgxpl,mpznmq,qmeoqt,upytx,uudeyyw,weks,zxvcbjrk\n", + "Ran 100 tests in 0.366s\n", "\n", + "OK\n" + ] + } + ], + "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." + ] + }, + { + "cell_type": "code", + "execution_count": 151, + "metadata": {}, + "outputs": [], + "source": [ + "def check_pass(password):\n", + " # at least 8 characters\n", + " if len(password) <= 8:\n", + " return False\n", + " # at least one lower case\n", + " if password.isupper() == True:\n", + " return False \n", + " # at least one upper case\n", + " if password.islower() == True:\n", + " return False \n", + " # at least one number\n", + " if password.isalpha() == True:\n", + " return False \n", + " # at least one special character\n", + " if password.isalnum() == True:\n", + " return False\n", + " return True" + ] + }, + { + "cell_type": "code", + "execution_count": 152, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "False" + ] + }, + "execution_count": 152, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "password = \"jolHgyf6587_kjndfgewgwefy\"\n", + "password.isalpha()" + ] + }, + { + "cell_type": "code", + "execution_count": 153, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "False" + ] + }, + "execution_count": 153, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "password.isalnum()" + ] + }, + { + "cell_type": "code", + "execution_count": 154, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "False" + ] + }, + "execution_count": 154, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "password.isupper()" + ] + }, + { + "cell_type": "code", + "execution_count": 155, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 155, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "check_pass(password)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + " " + ] + }, + { + "cell_type": "code", + "execution_count": 131, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + ".................FF....F.F....FF...FF....F..F..........F............F....F...F.......FF..FF....F....\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', 'a', 'c', 'c', 'd', [134 chars] 'z'] != 'qfzr,tddc,xpgafs,xxjiictxq,zlsrryisj' : Should be qfzr,tddc,xpgafs,xxjiictxq,zlsrryisj\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [944 chars] 'z'] != 'awvewha,cewasmja,cxubxqqk,ddsubz,evrgxmn[154 chars]fbmg' : Should be awvewha,cewasmja,cxubxqqk,ddsubz,evrgxmn,exegpjogqx,flfrj,fvfjryk,geuuxoecr,gkttuoef,hric,igoivk,jbfkzs,kiuxsyczo,kqgq,ljrknsbiu,lqyrcxz,nqjbc,ocezpp,omwx,pqsoez,rsgkcog,skcpfkg,sxvctnvnd,yzucpwfbmg\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [434 chars] 'z'] != 'aistpw,flba,gzvfdmez,ilejpg,ivxzggk,jbtz[52 chars]jdlc' : Should be aistpw,flba,gzvfdmez,ilejpg,ivxzggk,jbtzshpq,mbuajqk,pwoweou,rzzvb,tnrnm,ubiqc,ytkesqa,zbyyfjdlc\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'a', [214 chars] 'z'] != 'iispjtxrim,ilrjitqk,kuvmkzq,uhmaaznaq,vdrkql,xnuwgze' : Should be iispjtxrim,ilrjitqk,kuvmkzq,uhmaaznaq,vdrkql,xnuwgze\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [494 chars] 'z'] != 'cibbes,hmzcwly,hnve,hpmm,hsrmetsep,kyfwo[64 chars]nmga' : Should be cibbes,hmzcwly,hnve,hpmm,hsrmetsep,kyfwooecm,lwifsi,mfvm,mprdeoe,owanpw,pjrvl,pzygjbg,qwdyk,rnrxzx,tqxwsnmga\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [849 chars] 'z'] != 'bkme,cmsboniuu,fgmey,hbdjxlzxqg,hejkdgf,[135 chars]praz' : Should be bkme,cmsboniuu,fgmey,hbdjxlzxqg,hejkdgf,hqqjqaumb,hvoo,kmckhbt,lhfrlmv,lhlfjxnbla,ljpcwizu,mwnbvanpn,nmlm,ntusvysmx,ozenshmac,qbdfqjh,usaljotpvc,wabuyaqqhl,whwj,wkageuywnx,ygtpraz\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [739 chars] 'z'] != 'aqpef,azxg,banouslsoy,btdb,gmwximt,iffrg[113 chars]npdm' : Should be aqpef,azxg,banouslsoy,btdb,gmwximt,iffrgdvniu,jcrm,mmdjdqlrfl,mmyuamfoxy,ncruqreg,pdoyjrwe,quwtuejbh,togqbdwy,vcbxejucal,vyxshhgt,wdrokymj,xocxvxmtdj,yrvnpdm\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [474 chars] 'z'] != 'bumzboy,cenersuxcr,eqlpududz,gorw,heqlhb[60 chars]tode' : Should be bumzboy,cenersuxcr,eqlpududz,gorw,heqlhbbcam,lqwgddnh,rzpnmqxwu,snlbgayhsf,sunhrymo,tllbgbf,vclhe,vxtode\n", + "AssertionError: False != True : Should be True\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [464 chars] 'z'] != 'bbfqwn,hifvn,hykwfahghd,moduh,nzsvhovmh,[58 chars]tcga' : Should be bbfqwn,hifvn,hykwfahghd,moduh,nzsvhovmh,olmr,oujuwv,qcsebdm,seeeabg,sreqprbb,tlgftyvs,xghbkgt,ymowtcga\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'b', 'b', [244 chars] 'z'] != 'kiyosnybb,lzgdlfdrsk,oyjdvutdg,shwzivs,v[14 chars]gznc' : Should be kiyosnybb,lzgdlfdrsk,oyjdvutdg,shwzivs,vwgalgvy,xvspgrgznc\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [799 chars] 'z'] != 'aojy,bttyictb,coshk,ghgy,imfjjgdjg,imkdw[125 chars]yrjm' : Should be aojy,bttyictb,coshk,ghgy,imfjjgdjg,imkdwpw,jbojai,kopfrpqbuh,kqbqk,ktmmodfra,mkix,mnecw,njhixm,njywcos,obdyofomor,okvqkp,olfrkft,otxvxqu,pcfqcgk,uzbruserp,wtjlqdhqo,yrjm\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [604 chars] 'z'] != 'dsiietj,ewtqbiyqd,fmfurwme,hwir,ihtmvjnx[86 chars]yxml' : Should be dsiietj,ewtqbiyqd,fmfurwme,hwir,ihtmvjnxd,jkeni,luwwmnt,ojpyyzi,osjwe,qizzrplxft,qpapblaufd,qtcuhx,tkovezvejb,vajgd,yikfnsfal,yxml\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [419 chars] 'z'] != 'alsmzvsco,fbibitqu,gdnbxypxl,kpfpbwex,kt[49 chars]vydy' : Should be alsmzvsco,fbibitqu,gdnbxypxl,kpfpbwex,ktvgmsevi,ojznudol,olzs,qnidkckffg,qyltjxts,vgclbn,vydy\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [689 chars] 'z'] != 'bdkngg,eoyolbmu,ewihcgkmi,eybjl,gcjikjrk[103 chars]zchu' : Should be bdkngg,eoyolbmu,ewihcgkmi,eybjl,gcjikjrk,hjmdfxymff,itwqelb,junbc,peeukozp,puerbymo,qbkxfyal,rkjiaea,saty,yqvmu,ywwopcpfil,zhhnw,zregdqtcn,zujfzchu\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [789 chars] 'z'] != 'bnfqcxsqsi,cadcsp,dryj,dtewvnn,hrnar,inc[123 chars]zkog' : Should be bnfqcxsqsi,cadcsp,dryj,dtewvnn,hrnar,inckirg,iwgixj,jpbithfp,jslyeiwzd,kwfuagzrq,lzgeeb,mrerhirj,mtjnrvwz,ocxaaii,pesrip,pwdnuw,vjjngl,wclki,wjhbbclt,xlflgekhh,zemzkog\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [644 chars] 'z'] != 'accbw,akesytgs,brtoyek,diskmy,ecfnqsv,gj[94 chars]lxsb' : Should be accbw,akesytgs,brtoyek,diskmy,ecfnqsv,gjhaeogx,jlfi,kwhgwthdt,lczqbf,obukwhe,qywynnojg,spfqarlfc,sydsysvynw,tikrgl,xhpmia,yvosr,zvfpxglxsb\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [599 chars] 'z'] != 'cqdaxyk,dgvyonv,dtjk,huhpnwc,jbpsskraqj,[85 chars]kxzs' : Should be cqdaxyk,dgvyonv,dtjk,huhpnwc,jbpsskraqj,kvrell,ltvidtt,mfwa,pbfaazxc,qiggyzjsuo,rsfxrgj,rvwwzhsro,vbiwwiws,vwbdvnfo,zpcklr,zvkxzs\n", + "AssertionError: False != True : Should be True\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [459 chars] 'z'] != 'akbfnjzp,duoai,ffstd,gkdkudv,hvtlxuym,iv[57 chars]zohb' : Should be akbfnjzp,duoai,ffstd,gkdkudv,hvtlxuym,ivupqaymnb,jwjxzv,mpbmydve,nvlxqyfeqr,owcl,pmdnb,xhhevu,yzjzohb\n", + "AssertionError: True != False : Should be False\n", "\n", "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", + "FAIL: runTest (mod.testing.test_pass..TestKnown)\n", "----------------------------------------------------------------------\n", "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", + " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 202, in runTest\n", " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [879 chars] 'z'] != 'asou,bdzskfjzvp,dwhp,ebzoid,eicugvdpkj,e[141 chars]ixjd' : Should be asou,bdzskfjzvp,dwhp,ebzoid,eicugvdpkj,eyclxcfvt,fboquvwz,finzn,jmghdwcxu,jxutsc,kzsuanags,lcrupbkf,ltzpit,qideyqm,qqfgeyepn,rnexhro,tlwaruujvn,vevu,vndmnkot,xbtmaf,xpxtyuflio,zogycixjd\n", + "AssertionError: True != False : Should be False\n", "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [809 chars] 'z'] != 'bbzyk,ckvztvpqhy,cnlmzgg,cwxmiol,edhxwwa[127 chars]ybge' : Should be bbzyk,ckvztvpqhy,cnlmzgg,cwxmiol,edhxwwajh,eexpngfq,eydwdzosql,grxgfreii,gunzbehfdd,jlullm,njijopvp,otrsvg,qnhwyxhhc,qnucb,qzmblzo,rfrpj,wcmwrdhc,xunejkbuom,yqvmc,ysyzybge\n", + "Ran 100 tests in 0.323s\n", "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [299 chars] 'z'] != 'apicwwakwa,biydukty,dpgchpg,msxueoru,nfn[25 chars]aimt' : Should be apicwwakwa,biydukty,dpgchpg,msxueoru,nfnj,qtul,uygan,xcuxzz,zuofoaimt\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', 'b', 'd', 'e', 'e', [159 chars] 'z'] != 'evyxjjzp,fxuo,krqginwlm,thbhyzt,zemekzttd' : Should be evyxjjzp,fxuo,krqginwlm,thbhyzt,zemekzttd\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', 'a', 'a', 'b', 'b', 'c', [129 chars] 'z'] != 'gaveerj,pwmcgzvbmn,rptgqouaw,vkbqrk' : Should be gaveerj,pwmcgzvbmn,rptgqouaw,vkbqrk\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', 'a', 'b', 'b', 'b', 'b', [99 chars] 'z'] != 'axncboute,eznb,kyhb,llnbshitf' : Should be axncboute,eznb,kyhb,llnbshitf\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [294 chars] 'z'] != 'aguxfwzcm,dcidw,fikdq,gbspusp,hmolh,krvk[24 chars]yptk' : Should be aguxfwzcm,dcidw,fikdq,gbspusp,hmolh,krvkn,mdmlpsir,mowlld,ruwvsqyptk\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [699 chars] 'z'] != 'afvtbacihp,ajdjfl,cspfzq,egdiwr,iijh,iwm[105 chars]soip' : Should be afvtbacihp,ajdjfl,cspfzq,egdiwr,iijh,iwmvxucsx,iyzo,jhxnlr,mioagfthv,mttyoioh,nqurvrjyje,rrlsmmi,uglf,unnjzatyrc,vdwsopijlk,xcqyp,xqmwccps,zfcvfpsoip\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'a', [194 chars] 'z'] != 'afjatz,gygsts,mjpwjvy,qyeeadeus,uvptx,wpmtvkxgkh' : Should be afjatz,gygsts,mjpwjvy,qyeeadeus,uvptx,wpmtvkxgkh\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [564 chars] 'z'] != 'ceoyvjvqx,cjyxixldo,emsqse,enycdzm,eqjzs[78 chars]wcrz' : Should be ceoyvjvqx,cjyxixldo,emsqse,enycdzm,eqjzsufjow,jwfdoaplb,kjqanthb,korli,olqkwqn,shnepj,tdkrcdp,tilyehuaqo,vznjcjvhww,yswcrz\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [744 chars] 'z'] != 'ajzzsu,awofkuujdg,dfqgcyxgc,exiqf,ezuj,h[114 chars]yrxl' : Should be ajzzsu,awofkuujdg,dfqgcyxgc,exiqf,ezuj,hukyopoer,idjhdchrwo,jwdfigvzz,kcwd,khxsvsz,kwakvfd,nvimopjvu,rrlglmo,trpplqhj,uhmlp,ujfhpie,xqzqj,xqzrd,yqkmkiqvn,yrxl\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', 'a', [274 chars] 'z'] != 'ifuq,okoeaozapy,qddhhhtb,sxemqsdvp,urwtp[20 chars]wsot' : Should be ifuq,okoeaozapy,qddhhhtb,sxemqsdvp,urwtpqc,vzpjy,wfituio,xnawsot\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [374 chars] 'z'] != 'bbqgznpl,ftbvqbqe,hbpstlh,lvtgalcmm,poyb[40 chars]yhsm' : Should be bbqgznpl,ftbvqbqe,hbpstlh,lvtgalcmm,poybfhzj,terxdid,uieod,wbwdzz,xxdcxcyqrl,zzayhsm\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [764 chars] 'z'] != 'akoaqngawy,ayvqw,cascws,eibb,gtcj,hhjnbr[118 chars]izno' : Should be akoaqngawy,ayvqw,cascws,eibb,gtcj,hhjnbrfjjl,hmxoxs,ijhl,jqpog,jxnd,kgxuclf,mfohjjo,njmbwpe,nrtllbumd,phwqk,qingwflzde,svycgdo,tmtztdpjr,ukyhfdap,vhdrevkd,ydzizno\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [594 chars] 'z'] != 'bannda,bqfpe,dybieur,fhnh,huvu,ieuefmy,i[84 chars]zwdv' : Should be bannda,bqfpe,dybieur,fhnh,huvu,ieuefmy,ighxdqoww,kpunh,lymftrtc,miuddungz,nxaq,pgosgjl,pqnvvucnp,thgvsbxigf,vmvpl,zfgibphe,zzwdv\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [474 chars] 'z'] != 'bnoswzj,clxllgsaa,cmnpxkn,epfbridiv,hsgn[60 chars]dkts' : Should be bnoswzj,clxllgsaa,cmnpxkn,epfbridiv,hsgn,lojkl,lxcffzp,mjsrdirbgt,sjzgryh,srvvla,vvhfkkv,xigvooa,xiudkts\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [479 chars] 'z'] != 'cmbnbtvm,cwdhncmi,icygtcdql,ioahntdr,nfq[61 chars]lftr' : Should be cmbnbtvm,cwdhncmi,icygtcdql,ioahntdr,nfqhd,nkzz,npwpvehea,peieljbyml,rzijb,vfunu,vvbczj,xdovntvoi,yawlftr\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', 'a', 'a', [269 chars] 'z'] != 'eomqg,fdqw,pzzgkuibtm,uedwvaixnx,ugsffei[19 chars]rqey' : Should be eomqg,fdqw,pzzgkuibtm,uedwvaixnx,ugsffeilbc,uonptcsbay,ywglrqey\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [844 chars] 'z'] != 'gemimxs,heqzr,iqbo,jstof,jwvvwfm,khkqact[134 chars]tizm' : Should be gemimxs,heqzr,iqbo,jstof,jwvvwfm,khkqactbkw,lapv,lbwdz,lsduk,oixo,qaqhgoyaby,snxg,szitrvjhfc,tserwflzw,tylvfb,uledf,uoinzjiep,wztuabvtj,xbybonjb,xnheaf,xrckjypt,zoffriuqwp,zxtizm\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [569 chars] 'z'] != 'aonhjp,dhubzwsrr,fwhstxr,huitomz,jhudujd[79 chars]wmft' : Should be aonhjp,dhubzwsrr,fwhstxr,huitomz,jhudujdkx,kodvl,mjrwbcqvb,moruiubz,osvfuwuvd,tldphdql,wpsm,xvqfexqim,zghrdnacrk,zlyrvpwmft\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'a', [189 chars] 'z'] != 'gbbtod,gzpejcpcnn,lahp,tjawyeohxx,twydlx,wcarmj' : Should be gbbtod,gzpejcpcnn,lahp,tjawyeohxx,twydlx,wcarmj\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [514 chars] 'z'] != 'acnvfj,cvpfqpu,diyyr,dlpgyeq,edocfzqy,hq[68 chars]ozqg' : Should be acnvfj,cvpfqpu,diyyr,dlpgyeq,edocfzqy,hqbybbm,iyzourq,lyvbvjbzml,ofvktm,skxqoplqd,ssmo,suymxkykx,wgmnkeyf,wyozqg\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'a', 'd', [234 chars] 'z'] != 'ajtvfxvgrd,aljhtwdmnl,leeyglnepw,rjjj,xgwfkfm,ytmminzmfq' : Should be ajtvfxvgrd,aljhtwdmnl,leeyglnepw,rjjj,xgwfkfm,ytmminzmfq\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [659 chars] 'z'] != 'cgejxpt,ckxfqax,dqmqavmhl,eulls,fjdyudvh[97 chars]xssq' : Should be cgejxpt,ckxfqax,dqmqavmhl,eulls,fjdyudvhjz,fztvy,hyrnqjembo,meyxlcewf,muxonxy,pswucoivz,pvyvahpry,rpqmil,rxotlwrvjj,ryba,wpllzqahbd,xetz,xssq\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [654 chars] 'z'] != 'dtsdry,edvtcojmgl,enrkxyhpi,fpudhdxrlm,f[96 chars]pyau' : Should be dtsdry,edvtcojmgl,enrkxyhpi,fpudhdxrlm,fzwuyajmkt,gecskvrzm,jfopjbank,jwwjkuxsd,kderyxh,nvtxcg,pahurtpvx,qfmympxcg,rzbnrhv,wijmfzdek,zespyau\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [1079 chars] 'z'] != 'chwgiskltq,cqzoqzo,dldhrtykbh,dpmszejdfx[181 chars]rcdq' : Should be chwgiskltq,cqzoqzo,dldhrtykbh,dpmszejdfx,eeogeh,elmoakpc,eqpgsprr,fwuuoeignk,gpedzkigho,kmrbuditvg,lpfkiag,lsuulvctap,nagtuus,nfjgikhj,nuzaquagi,ouwamiypp,qixqmky,qstpzt,rfglbbtxbg,sxafkthom,tphqiw,twopuizbxj,ubqejtd,zyforcdq\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [914 chars] 'z'] != 'alxqpse,blukjspebb,eoxhjytp,esbpgtyq,etn[148 chars]undf' : Should be alxqpse,blukjspebb,eoxhjytp,esbpgtyq,etnlec,fffwe,gwxcaon,ixcsesxs,jehtkbdq,jpguij,nabkvwebz,nopaqv,oawen,pfkauules,psnw,qufvfmgb,ranhgtjpgc,rvwn,sblprzgy,tqdvu,tzbiv,uolfuvzb,uqfcdholk,vfundf\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [264 chars] 'z'] != 'cncdx,irbuojw,nudpw,qnwzkx,rifhsdik,rpar[18 chars]jfgs' : Should be cncdx,irbuojw,nudpw,qnwzkx,rifhsdik,rpartx,tjlo,wbmmpeha,xjfgs\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', 'a', [264 chars] 'z'] != 'epxu,keqtcb,kyalwkfwto,lcdnjav,omhpyjkpw[18 chars]bhmx' : Should be epxu,keqtcb,kyalwkfwto,lcdnjav,omhpyjkpw,ppkxc,vqueolaw,zcbhmx\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'e', 'e', [159 chars] 'z'] != 'nakel,prltl,qvvqusg,uerhylx,volxpeh,vznlf' : Should be nakel,prltl,qvvqusg,uerhylx,volxpeh,vznlf\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', 'b', 'd', 'e', 'f', [124 chars] 'y'] != 'dtqvjq,eutqk,fpprjpt,jnjrqtjy,nibv' : Should be dtqvjq,eutqk,fpprjpt,jnjrqtjy,nibv\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [439 chars] 'z'] != 'bhxgg,fxokoe,hcgvyj,ijzxfaw,itthl,kowyyh[53 chars]todz' : Should be bhxgg,fxokoe,hcgvyj,ijzxfaw,itthl,kowyyh,qshd,qtoz,ublcyhaov,usfgiq,vlbhljmw,vyutptzq,wdzy,xotodz\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [384 chars] 'z'] != 'ccrb,dhazeptamx,jttri,kmob,migsdjxr,mknz[42 chars]qdlv' : Should be ccrb,dhazeptamx,jttri,kmob,migsdjxr,mknzcssf,mtpwpdd,nzslaw,qfxpdces,qqqneo,sijlnsqdlv\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', 'a', 'a', [244 chars] 'z'] != 'aehztarh,fpvfbqso,lzife,qpvakivjap,syked[14 chars]vsmw' : Should be aehztarh,fpvfbqso,lzife,qpvakivjap,sykedxzofs,vocqfqh,vsmw\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [439 chars] 'z'] != 'bfkhmlpom,boin,clpoffgjb,dcqexfj,dloxj,h[53 chars]bnem' : Should be bfkhmlpom,boin,clpoffgjb,dcqexfj,dloxj,hyvrcswel,maxbk,omumahgqx,peaf,pjpobhzrp,svit,tmao,xhpbnem\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [864 chars] 'z'] != 'bgrkrb,bnlzdy,buqdemigmx,cdnttpwy,cfkf,e[138 chars]hucp' : Should be bgrkrb,bnlzdy,buqdemigmx,cdnttpwy,cfkf,estbyjurcl,eutbmckqe,gmotbxuje,guiajnnw,iplatwv,lteyqs,mnalwhfq,nbgdhb,pedtshzwza,poyjgqnfur,qufp,thxhtskuh,uaxe,uudeeh,uvcp,vtvnk,wlfbdn,xhucp\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', 'a', 'b', 'c', 'c', 'c', [114 chars] 'z'] != 'dzbdpncndm,edatunjcf,ljchw,yszmv' : Should be dzbdpncndm,edatunjcf,ljchw,yszmv\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [984 chars] 'z'] != 'aeuefx,bjai,dfncpkrki,dlcl,grug,hbhgney,[162 chars]snkh' : Should be aeuefx,bjai,dfncpkrki,dlcl,grug,hbhgney,ibulc,iclxipstu,ieccwtag,jczsbarz,jiboarp,mgefectir,miihznuxc,ndegdbodp,qmesmumwi,rjeabmgtqf,rztgsuuvr,shmtftkog,sjovaxivtg,smuppku,tihaaxre,wtrizm,xuzlsff,zalmigsnkh\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'b', 'c', [194 chars] 'y'] != 'hdmdso,hpeesjwjl,qjbywh,tymevcqmc,yirgqa,yscermj' : Should be hdmdso,hpeesjwjl,qjbywh,tymevcqmc,yirgqa,yscermj\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [384 chars] 'z'] != 'crshxz,ecsihe,fpydeuh,oapkapxuqg,okgtbyp[42 chars]wuan' : Should be crshxz,ecsihe,fpydeuh,oapkapxuqg,okgtbypupk,patcobz,pzqrdouul,qcvkgwh,rygavhgrpq,vwuan\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [664 chars] 'z'] != 'autxaiyfq,ccpegikvti,czdwjj,gagedtggbl,g[98 chars]yuwq' : Should be autxaiyfq,ccpegikvti,czdwjj,gagedtggbl,gfyswk,gwrksyjaa,ijanljm,ityrl,mkuqc,mwddujalt,opklsq,plngtn,pvygzr,veogomg,xsbtmwdiyl,xtcptv,yknqqyuwq\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [844 chars] 'z'] != 'afghtybh,byslggxe,dnduk,dzbdq,ficwwwnsw,[134 chars]ycyx' : Should be afghtybh,byslggxe,dnduk,dzbdq,ficwwwnsw,gaxs,kzutfp,mazzdtqve,mkjnkuixah,mojjehpnkb,nppmwggwo,pbikealt,pbzl,pgkf,qvzsdpwld,twilepsi,uupkkggln,vemhlwdvq,wggbpeowpm,wsygnccmqp,ycyx\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [399 chars] 'z'] != 'aeskkx,cdxohlgmea,ioow,jzfl,kznitlwbm,mg[45 chars]dfrt' : Should be aeskkx,cdxohlgmea,ioow,jzfl,kznitlwbm,mgapliljax,nkdguefnu,pmzrchhdhe,tyfnjlyvq,vcsfhdfrt\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [644 chars] 'z'] != 'bfamylpi,bscdj,cznoqlaj,dtnmrzeb,ezea,ff[94 chars]xobz' : Should be bfamylpi,bscdj,cznoqlaj,dtnmrzeb,ezea,ffdcul,gvebep,hlyzath,jcpmzb,lnpdtrcrb,ndnc,pxhdort,rurkuuqs,spbs,uficmz,vrzcceygna,wxuxumnnbo,zxobz\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [759 chars] 'z'] != 'dorkax,dsomltx,fejp,govkuoj,gxatxer,ikda[117 chars]dwsm' : Should be dorkax,dsomltx,fejp,govkuoj,gxatxer,ikdadcxmc,mlhheo,oaby,ogfsjllxl,oofpcmnwq,pofqgq,rqkgk,tetk,tuzsj,tvprre,ubkcnmy,veqeppvm,vupzwped,wlpmyie,wqbwxmke,zapoqdwsm\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [939 chars] 'z'] != 'cnzcvis,dyvxhoym,ehcklwdw,ixqez,jehotyc,[153 chars]fxbq' : Should be cnzcvis,dyvxhoym,ehcklwdw,ixqez,jehotyc,jhacydmyq,liicvpkpka,motob,nghri,nwzdcq,ppvhkcww,qfddhyl,qowqlznmzp,rpqpobtcqg,snvynjlhg,tdhkrrfy,uvpjltejcr,vxglferku,wtag,xbhjya,xutjtvvdx,zanacc,zswawfxbq\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'b', 'b', 'c', [164 chars] 'z'] != 'bvbmzvl,frjfywzlo,hpgdp,jlgjzc,ydwe,zoilzy' : Should be bvbmzvl,frjfywzlo,hpgdp,jlgjzc,ydwe,zoilzy\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [394 chars] 'z'] != 'abdwdst,aphvjbf,bxwm,fddngvcrv,morbkzfh,[44 chars]wpou' : Should be abdwdst,aphvjbf,bxwm,fddngvcrv,morbkzfh,mvtegn,nusxu,phpcn,rmucm,uvxonug,vdeqvzdpgg,wpou\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [354 chars] 'z'] != 'cakdvenfuv,gnbgpjmkxn,guenoyenit,jdbzuj,[36 chars]fofh' : Should be cakdvenfuv,gnbgpjmkxn,guenoyenit,jdbzuj,kdcuvf,osjk,thmlhze,xfjpmkjki,znlsqhfofh\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [904 chars] 'z'] != 'ahjiodfgmk,bvwrvdoxl,cbvsfknp,dvaficgih,[146 chars]tyjz' : Should be ahjiodfgmk,bvwrvdoxl,cbvsfknp,dvaficgih,etfgzovfp,jbttixv,jdwgky,kovjwhpkf,kpujv,lemw,lfchvfgj,mtypifa,nyulentpqy,ootyni,pdvru,perykfyw,qyfkpn,rpqbtg,uhbpuhedqv,uikzhzj,xagng,xbyorbaz,zrtyjz\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', ',', ',', ',', [679 chars] 'z'] != 'bmtjn,dhuydtza,ecgknm,eibfjo,ejwg,fwml,i[101 chars]wnsi' : Should be bmtjn,dhuydtza,ecgknm,eibfjo,ejwg,fwml,ipvome,iucf,lgefpf,lhfpmn,muexgthfs,ofkggmx,ohqnvtn,spwyk,ubtrqqyha,wbglwwbl,yudmdhpm,zbqsuobynl,zunmjwnsi\n", - "\n", - "======================================================================\n", - "FAIL: runTest (mod.testing.test_alpha..TestKnown)\n", - "----------------------------------------------------------------------\n", - "Traceback (most recent call last):\n", - " File \"/Users/narea/Desktop/ironhack/labs/lab-functions/mod/testing.py\", line 187, in runTest\n", - " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", - "AssertionError: [',', ',', ',', ',', ',', 'a', 'b', 'b', [209 chars] 'y'] != 'axdixipb,lhky,nsjqdjco,ofoniovkp,rkbquosbrc,xceoubi' : Should be axdixipb,lhky,nsjqdjco,ofoniovkp,rkbquosbrc,xceoubi\n", - "\n", - "----------------------------------------------------------------------\n", - "Ran 100 tests in 0.338s\n", - "\n", - "FAILED (failures=100)\n" + "FAILED (failures=19)\n" ] } ], "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": null, - "metadata": {}, - "outputs": [], - "source": [ - "def check_pass(string):\n", - " pass" + "test_pass(check_pass)" ] }, { @@ -2556,10 +2081,7 @@ "execution_count": null, "metadata": {}, "outputs": [], - "source": [ - "# This will test your function \n", - "test_pass(check_pass)" - ] + "source": [] } ], "metadata": {