Dictionary

Himanshu Yadav himanshuyadav9630994925 at gmail.com
Sat Feb 23 23:21:02 EST 2019


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??


More information about the Python-list mailing list