for the digit_sum section. why did we have to turn it into a string first? I see it says that in the hint but why?
You don't have to, that's just one way of going about it. If you read the rest of the hint, it explains why it would be helpful to do so.
ok, is it isolating all of the digits by turing it into a string? so when the numbers were int, they were combined as one number?
An int has no concept of digits, a string is a sequence of characters. Each digit takes up one character. Strings support iterating over characters and and therefore digits if the text is a number
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.