0
how can I write a code for Fibonacci sequence up to 100? please help me.
2 Respostas
0
I wrote an example on the playground.
http://www.sololearn.com/app/JUMP_LINK__&&__python__&&__JUMP_LINK/playground/cZoFqvg92nms/
0
You can use a dictionary to cache previous values. If you don't and you are using a recursive function, then you will wait a long time for anything over 30. See my example code at http://www.sololearn.com/app/JUMP_LINK__&&__python__&&__JUMP_LINK/playground/cAeZvpBgh0ES/