Digit_sum. Help!


Why is c being printed before the for loop?!! I tried using the for/else statement. It is the same. The code is so short but i am unable to see the problem here.



The answer is in the error message.

It returns None when it should return 11.

Your code is printing 11, not returning it.

A link to the exercise would help us to confirm this.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.