Add a @memoize decorator and do it there, you need to always be as obvious as possible. Compare:
@memoize def fibonacci(n): pass def fibonacci(n, memory=[]): pass
Add a @memoize decorator and do it there, you need to always be as obvious as possible. Compare:
You don't even need documentation for the first example.