Reply - Raw
>>> divisors = lambda n: [x for x in range(1,int(n/2+1)) if n%x==0] + [n]
>>> divisors(50)
[1, 2, 5, 10, 25, 50]