Skip to content

Instantly share code, notes, and snippets.

@vikychoi
Last active November 5, 2017 04:34
Show Gist options
  • Save vikychoi/16a1b24764c65a838b2c0e4eb24413a6 to your computer and use it in GitHub Desktop.
Save vikychoi/16a1b24764c65a838b2c0e4eb24413a6 to your computer and use it in GitHub Desktop.
k = int(input("give me a number"))
a = []
for divisor in range(1, k+1):
print(divisor)
if k%divisor == 0:
a.append(divisor)
print(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment