hi, i understand how fibonacci number works but i don't understand the coding part of it. can someone please explain it to me?

Hey! We 've verified this expert answer for you, click below to unlock the details :)

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

Do you mean you need help with how to build the function, or you're looking at the function on a handout and you need help figuring out what it does?

i'm looking at the function but can't figure out what it does

This one? def fib(x): """Return fibonacci of x, where x is a non-negative int""" if x == 0 or x == 1: return 1 else: return fib(x-1) + fib(x-2)

Looking for something else?

Not the answer you are looking for? Search for more explanations.

## More answers

Looking for something else?

Not the answer you are looking for? Search for more explanations.