How to write a Chain Adding Function in Python
The challenge
We want to create a function that will add numbers together when called in succession.
We also want to be able to continue to add numbers to our chain.
and so on.
A single call should return the number passed in.
|
|
We should be able to store the returned values and reuse them.
We can assume any number being passed in will be valid whole number.