
Hello, I'm not sure if this is a bug, but I believe where it says makes 11 recursive calls the other 10 are cached it should either be that both say 10 or both say 11. See attached screenshot. Thanks Robert

Hey Robert, On Fri, Jul 1, 2022, at 7:58 AM, Voinea Robert wrote:
Hello,
I'm not sure if this is a bug, but I believe where it says makes 11 recursive calls the other 10 are cached it should either be that both say 10 or both say 11.
No, the numbers are correct. Remember the function is called for '0' as well. It might be useful to insert a `print(n)` in the function before the return and run the example yourself :)
See attached screenshot.
Thanks Robert _______________________________________________ docs mailing list -- docs@python.org To unsubscribe send an email to docs-leave@python.org https://mail.python.org/mailman3/lists/docs.python.org/ Member address: cmdr@supakeen.com
Attachments: * 12.jpg
participants (2)
-
Simon de Vlieger
-
Voinea Robert