Skip to content

Instantly share code, notes, and snippets.

@adamoudad
Last active Oct 13, 2020
Embed
What would you like to do?
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