Digit_sum. Help!


#1

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.

Captura


#2

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.


#3

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