diff --git a/challenge_7/python/sarcodian/READ.me b/challenge_7/python/sarcodian/READ.me new file mode 100644 index 000000000..e69de29bb diff --git a/challenge_7/python/sarcodian/src/challenge_7.py b/challenge_7/python/sarcodian/src/challenge_7.py index 12cf0f87b..7f6890752 100644 --- a/challenge_7/python/sarcodian/src/challenge_7.py +++ b/challenge_7/python/sarcodian/src/challenge_7.py @@ -1,4 +1,7 @@ def missing_int(L): + ''' + Ask for a list and return the missing value + ''' sum_n = 0 sum_n_less_1 = 0 @@ -10,3 +13,5 @@ def missing_int(L): sum_n_less_1 += i return sum_n - sum_n_less_1 + + diff --git a/challenge_7/python/sarcodian/src/challenge_7_tests.py b/challenge_7/python/sarcodian/src/challenge_7_tests.py index 3f18b1c6b..5428811d0 100644 --- a/challenge_7/python/sarcodian/src/challenge_7_tests.py +++ b/challenge_7/python/sarcodian/src/challenge_7_tests.py @@ -11,7 +11,6 @@ class TestBinaryMethods(unittest.TestCase): def test_missingInt(self): - """ Tests from the READ.me """ self.assertEqual(missing_int([1,3,4,0]), 2) self.assertEqual(missing_int([1,2,3]), 0)