What would be the best python approach to find all the divisors of a number?
Of course you can do something like:
for i in n: if n/i !=0: print(i)
But then you have to loop throu all the numbers. Is there a better approach?
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.