From fb29e9543d30214cc331e6c764844d4856cd22af Mon Sep 17 00:00:00 2001 From: Mohamed-aymen-kaabi <68249571+Aymen-kaabi@users.noreply.github.com> Date: Wed, 4 Nov 2020 17:35:26 +0100 Subject: [PATCH] easy --- README.md | 2 +- script.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index de919df..915fb94 100644 --- a/README.md +++ b/README.md @@ -21,5 +21,5 @@ HINT: Consider use range(#begin, #end) method B. Update this README.md with the insctruction(s) needed to run that script ```shell - +$python3 script.py ``` \ No newline at end of file diff --git a/script.py b/script.py index 6e2f59b..86053ab 100644 --- a/script.py +++ b/script.py @@ -26,4 +26,8 @@ ######### # INSERT YOUR CODE BELOW THIS LINE ######### - +nl=[] +for x in range(2000, 3200): + if (x%7==0) and (not x%5==0): + nl.append(str(x)) +print (','.join(nl))