Adding Big Numbers as Strings

easy
Checkpoint challenge
Solve this to show you know the material and jump straight to Unit 4. Everything before it counts as cleared.

Implement add_strings(a, b) and multiply_strings(a, b) for non-negative integers given as digit strings, without converting the whole strings to int. Results have no leading zeros (except "0" itself).

This is how arbitrary-precision arithmetic works under the hood.

#strings#arithmetic2 visible + 1 hidden tests
solution.py · Python 3.13
Loading editor…
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Adding Big Numbers as Strings · TechGradify