On Jul 23, 6:30*pm, Samir <spytho...@gmail.comwrote:
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
>>>