I have 3 functions working together, but I only have abundant returned every single time, I don't know what is wrong
def sumDivisors(n):
total = 0
for counter in range(1, n):
if (isDivisor(n, counter)):
total += counter
return total
def checkForPerfect(n):
total = sumDivisors
if (total == n):
return 'Perfect'
elif (total < n):
return 'Deficient'
else:
return 'Abundant'
def isDivisor(a, b):
if (a%b) == 0:
return True
return False