Skip to content

Instantly share code, notes, and snippets.

@KatiGithub
Last active October 5, 2018 08:25
Show Gist options
  • Save KatiGithub/0bb4bc18ea6a4ae341c2831fc111769e to your computer and use it in GitHub Desktop.
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.
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