diff --git a/README.md b/README.md index de919df..8e043a0 100644 --- a/README.md +++ b/README.md @@ -22,4 +22,12 @@ HINT: Consider use range(#begin, #end) method B. Update this README.md with the insctruction(s) needed to run that script ```shell +the number is between 2000 and 3000 +first we declare an array +second we loop through the range between 2000 and 3000 +third we need two condition one the reminder of number%7 must be 0 and the rminder of number%5 must be diffrent than 0 +then we append the result to to the array +then we print it +when in python idle write the arr = [] first, then write the rest of the script + ``` \ No newline at end of file diff --git a/script.py b/script.py index 6e2f59b..65cca88 100644 --- a/script.py +++ b/script.py @@ -26,4 +26,8 @@ ######### # INSERT YOUR CODE BELOW THIS LINE ######### - +arr = [] +for number in range(2000,3200): + if(number % 7 == 0) and (number % 5 != 0): + arr.append(number) + print(arr)