(Note. If you missed the "Python Primer" lab and you have no Python experience, please come to Jiho's office hours. We can do this together.)
Fibonacci numbers are defined recursively as below:
f(0) = 0, f(1) = 1
f(n) = f(n-1) + f(n-2)
Implement a fibonacci function fib(n)
, and use it to print out the Fibonacci numbers where n
ranges from 0 to 9 such as: