Re:Adding Digits in Python (or Smarter-looking doesn't mean ...
by chriswitts on Wednesday May 13, 2015 @03:32AM
(#9537356)
Surprised you didn't have `sum(map(int, number_string))` in there.
Marginally slower, a hell of a lot easier to read what's going on.
[ Parent
| on HN ]
There are no comments on this comment yet.