I have a question on Python 3.
I would like to recursion from 1 to 20 for n under the condition that f(0)=1, f(1)=1, f(n)=f(n-1)+f(n-2), n>1.
Return value is
The original code is like this, but I would like to put it on the list when I return, but it doesn't work
If you write like this, you won't get the same value as above.
How can I put it on the list and return it?
Please give me some advice
As a separate explanation, I wrote as follows.
Is it necessary to do it with just one function?
I think it's better to prepare another function like this.
I got something different from others.Could it be simpler?
After that, solve the gradualization formula and use Vine's formula
There will be some errors, but
© 2022 OneMinuteCode. All rights reserved.