Dictionary

MRAB python at mrabarnett.plus.com
Sun Feb 24 14:17:26 EST 2019


On 2019-02-24 04:21, Himanshu Yadav wrote:
> fibs={0:0,1:1}
> def rfib(n):
>        global fibs
>         if not fibs.get(n):
>                  fibs[n]=rfib(n-2)+rfib(n-1)
>          return fibs[n]
> 
> Why it is gives error??
> 
What error?


More information about the Python-list mailing list