From 6c3c2686947d2a1c7bd233103d137ce8faacddc9 Mon Sep 17 00:00:00 2001 From: Sarcodian Date: Mon, 23 Jan 2017 14:48:02 +0300 Subject: [PATCH] Edits to documentation --- challenge_7/python/sarcodian/READ.me | 0 challenge_7/python/sarcodian/src/challenge_7.py | 5 +++++ challenge_7/python/sarcodian/src/challenge_7_tests.py | 1 - 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 challenge_7/python/sarcodian/READ.me 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)