Skip to content

Instantly share code, notes, and snippets.

@adamoudad
Last active October 13, 2020 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamoudad/3eab545e76f78679e5aa6d5096a1c083 to your computer and use it in GitHub Desktop.
Save adamoudad/3eab545e76f78679e5aa6d5096a1c083 to your computer and use it in GitHub Desktop.
def get_divisors(n):
divisors = []
for m in range(1, n+1):
if n % m == 0:
divisors.append(m)
return divisors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment