Skip to content

Add sum of digits fundamentals problem - #173

Open
olimasad wants to merge 2 commits into
coding-cat-official:mainfrom
olimasad:add-sum-digits-problem
Open

olimasad wants to merge 2 commits into
coding-cat-official:mainfrom
olimasad:add-sum-digits-problem

Conversation

@olimasad

Copy link
Copy Markdown
Contributor

Summary

  • Adds a new Fundamentals coding problem, sum_digits, that asks students to sum the decimal digits of a non-negative integer.
  • Adds matching mutation problem sum_digits_mutation with a reference solution and five mutations covering common mistakes (wrong digit extraction, off-by-one loop bounds, two-digit shortcut, sliced string sum, and =+ instead of +=).
  • Includes six io.json test cases (including

Introduces a Fundamentals exercise for digit sums with reference solution and five targeted mutations for test-suite practice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant