
Implement count_digit_steps, a function that counts adjacent increasing digit pairs.
count_digit_steps("4567")Expected result
3For your own tracking. Tests grade your code.
count_digit_steps("4q56")Expected result
1Expected files
digit_steps.pyAllowed functions
None. Write every helper yourself.

Implement count_digit_steps, a function that counts adjacent increasing digit pairs.
count_digit_steps("4567")Expected result
3For your own tracking. Tests grade your code.
count_digit_steps("4q56")Expected result
1Expected files
digit_steps.pyAllowed functions
None. Write every helper yourself.

Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.
v0.40: Create exercises. Challenge the community.
Meet Studio →