← Back to challenges

Adding Numbers

PythonHardmathnumbersconditions

Instructions

Create a function that takes two number strings and returns their sum as a string.

Examples

add("111", "111") ➞ "222"

add("10", "80") ➞ "90"

add("", "20") ➞ "Invalid Operation"

Notes

If any input is "" or None, return "Invalid Operation".

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: List of Multiples