On Jul 23, 9:14 pm, mzdude <[EMAIL PROTECTED]> wrote: > On Jul 23, 6:30 pm, Samir <[EMAIL PROTECTED]> wrote: > > > Hi Everyone, > > > def findSumOfDivisor(n): > <snip> > > return sum(divisor) # fine using function sum() > > > sum = findSumOfDivisor(i) # then find the sum of its divisors > > oops redefine what sum is. > > > > >>> x = [1,2] > >>> sum(x) > 3 > >>> sum = 4 > >>> sum(x) > > Traceback (most recent call last): > File "<pyshell#11>", line 1, in <module> > sum(x) > TypeError: 'int' object is not callable > > > > - Hide quoted text - > > - Show quoted text -
I am an IDIOT! Thanks, mzdude! That did the trick. Sorry for posting something this stupid. -- http://mail.python.org/mailman/listinfo/python-list