Last active
October 5, 2018 08:25
-
-
Save KatiGithub/0bb4bc18ea6a4ae341c2831fc111769e to your computer and use it in GitHub Desktop.
This code finds all the multiples of 7 and 5 between the number 1500, 2700 using For loop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nl = [] | |
for x in range(1500, 2701): | |
if (x%7==0) and (x%5==0) == True: | |
nl.append(x) | |
print(nl) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment