Dec-05-2016, 10:55 PM
Keep it nice and simple:
divisors = lambda x: [i for i in range(2, x) if x%i==0]
How to get all divisors from a number
|
|
Messages In This Thread |
How to get all divisors from a number - by Doesnotcompute - Nov-24-2016, 08:45 PM
RE: How to get all divisors from a number - by micseydel - Nov-24-2016, 10:09 PM
RE: How to get all divisors from a number - by heiner55 - Nov-25-2016, 06:30 AM
RE: How to get all divisors from a number - by nilamo - Dec-05-2016, 10:55 PM
|