-
-
Save vikychoi/16a1b24764c65a838b2c0e4eb24413a6 to your computer and use it in GitHub Desktop.
This file contains 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
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