Skip to content

Instantly share code, notes, and snippets.

@rostyq
Last active July 27, 2017 15:59
Show Gist options
  • Save rostyq/96bdd460ab2dbf8d130fcc5a01f326f9 to your computer and use it in GitHub Desktop.
Save rostyq/96bdd460ab2dbf8d130fcc5a01f326f9 to your computer and use it in GitHub Desktop.
num = input("Input a number: ")
num = int(num)
rng = range(1,num+1)
new_rng = [i for i in rng if num % i ==0]
print(new_rng)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment