Skip to content

Instantly share code, notes, and snippets.

@Raj39120
Created April 30, 2020 13:41
Show Gist options
  • Save Raj39120/7fa58147c3b8470d6c92d438816211f2 to your computer and use it in GitHub Desktop.
Save Raj39120/7fa58147c3b8470d6c92d438816211f2 to your computer and use it in GitHub Desktop.
user_number = input("Enter an integer over here and the program will print out a list of all of its divisors: ")
x = range(1, user_number)
for y in x:
if (user_number / float(y)) == float(user_number//y):
print(y)
else:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment