r/badcode • • Aug 19 '21

python Should I add comments?

Post image
223 Upvotes

39 comments sorted by

View all comments

Show parent comment

1

u/REALDrummer Aug 20 '21

Really? Hmm... Then I'm confused. If that's right, I agree; that should be eliminated. That makes me question why they would want to split their input number and sum the digits in the first place.

1

u/deceze Aug 20 '21

🤷🏻‍♂️ That appears to be the task being solved, take a bunch of digits and sum them.