Does not work


Does not work. Here is my complete code:
def digit_sum(n):
for digit in n:
ds = 0
ds += digit

del digit_sum
NameError = "just about anything other than what it's supposed to be"
Exception = "somebody should get around to fixing this..."

4.15 "'int' object is not callable" error - French version -

Well, I would suggest to put the"ds=0" before the line "for digit in n:" otherwise ds will never increase as it is put back to "0" FOR each digit in n.

BR, Laurent.


@jrpsychgal This was a work-around targeted at a specific exercise on the French track.

You might want to make sure your own code is correct before trying to break the submission test, I think you're barking up the wrong tree.