diff --git a/README.md b/README.md index de919df..629a5f6 100644 --- a/README.md +++ b/README.md @@ -21,5 +21,8 @@ HINT: Consider use range(#begin, #end) method B. Update this README.md with the insctruction(s) needed to run that script ```shell - + +source : https://www.knowledgehut.com/blog/programming/run-python-scripts +python command : python script.py + ``` \ No newline at end of file diff --git a/script.py b/script.py index 6e2f59b..2e445a4 100644 --- a/script.py +++ b/script.py @@ -26,4 +26,10 @@ ######### # INSERT YOUR CODE BELOW THIS LINE ######### +result=[] +for x in range(2000, 3200): + if (x%7==0) and (x%5!=0): + result.append(str(x)) +print (','.join(result)) +