From 356493a6dc317923735d1b0557a833061c7a02a1 Mon Sep 17 00:00:00 2001 From: Paolo Lucano Date: Mon, 28 Oct 2019 15:50:56 +0000 Subject: [PATCH] fixed issues 17 and 9 --- exercises/09-Creating-Your-First-Function/test.py | 2 +- exercises/17-While-Loop/app.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/09-Creating-Your-First-Function/test.py b/exercises/09-Creating-Your-First-Function/test.py index 90013d15..8cd7aeea 100644 --- a/exercises/09-Creating-Your-First-Function/test.py +++ b/exercises/09-Creating-Your-First-Function/test.py @@ -18,7 +18,7 @@ def test_use_my_var1(): my_return = [s for s in content if "return" in s] my_returnIndex = content.index(my_return[0]) # print(my_print_index) - regex = r"return a(\s*)\+(\s*)b" + regex = r"return(\s*)(\W*)a(\s*)\+(\s*)b(\s*)(\W*)" assert re.match(regex, content[my_returnIndex]) # assert re.match(regex, content) diff --git a/exercises/17-While-Loop/app.py b/exercises/17-While-Loop/app.py index 84b0e9db..04d18708 100644 --- a/exercises/17-While-Loop/app.py +++ b/exercises/17-While-Loop/app.py @@ -1,6 +1,6 @@ def start_counting(): counter = 100 - while counter <= 100: + while counter > -1: print(counter) counter-=1 return counter