From f8a335bfc2735b24519c82f1d842eecdb4b1aca2 Mon Sep 17 00:00:00 2001 From: HamdiBenkahla <68249436+HamdiBenkahla@users.noreply.github.com> Date: Wed, 4 Nov 2020 18:01:13 +0100 Subject: [PATCH 1/3] c2 --- README.md | 5 ++++- script.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index de919df..080d23a 100644 --- a/README.md +++ b/README.md @@ -22,4 +22,7 @@ HINT: Consider use range(#begin, #end) method B. Update this README.md with the insctruction(s) needed to run that script ```shell -``` \ No newline at end of file +``` +for x in range(2000, 3001): + if (x%7==0) and (x%5==1): + print(x) \ No newline at end of file diff --git a/script.py b/script.py index 6e2f59b..ebf8966 100644 --- a/script.py +++ b/script.py @@ -27,3 +27,4 @@ # INSERT YOUR CODE BELOW THIS LINE ######### + From 93b5b8de73d71cce26bf5e6763d3d9d89c87db1e Mon Sep 17 00:00:00 2001 From: HamdiBenkahla <68249436+HamdiBenkahla@users.noreply.github.com> Date: Wed, 4 Nov 2020 18:09:33 +0100 Subject: [PATCH 2/3] correct --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 080d23a..49c92a6 100644 --- a/README.md +++ b/README.md @@ -24,5 +24,5 @@ B. Update this README.md with the insctruction(s) needed to run that script ``` for x in range(2000, 3001): - if (x%7==0) and (x%5==1): + if (x%7==0) and (x%5 !=0): print(x) \ No newline at end of file From 8344c8c8b508a61036bbe72a2cb4c93765db2771 Mon Sep 17 00:00:00 2001 From: HamdiBenkahla <68249436+HamdiBenkahla@users.noreply.github.com> Date: Wed, 4 Nov 2020 18:16:56 +0100 Subject: [PATCH 3/3] fix in script --- script.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script.py b/script.py index ebf8966..62e9bf8 100644 --- a/script.py +++ b/script.py @@ -27,4 +27,6 @@ # INSERT YOUR CODE BELOW THIS LINE ######### - +for x in range(2000, 3001): + if (x%7==0) and (x%5 !=0): + print(x)