Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<REPLACE_WITH_YOUR_INSTRUCTION>
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

```
6 changes: 5 additions & 1 deletion script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)