Ad
Code
Diff
  • def divisors(number):
        return [i for i in range(1,number+1) if number % i == 0]
    • def divisors(number):
    • dividers = []
    • for i in range(1,number+1):
    • if(number % i == 0):
    • dividers.append(i)
    • return dividers
    • return [i for i in range(1,number+1) if number % i == 0]