News for hackers. Stuff that matters.
Re:My Favorite Programming Problem to Teach: Digit Length by onesmallcoin on Sunday November 10, 2019 @08:11PM (#21501366)
What about len(str('12345')) If your teaching python you may as well take advantage of the standard library
Re:My Favorite Programming Problem to Teach: Digit Length by woat on Sunday November 10, 2019 @08:16PM (#21501380)
If you read the article, you will see that this solution was covered at the end.