Question: TA's Name: ame (10 pts) Write a function called fibonacci ( that accepts an integer, called n, as a parameter and returns the Fibonacci value
TA's Name: ame (10 pts) Write a function called fibonacci ( that accepts an integer, called n, as a parameter and returns the Fibonacci value of the nth term. The function determines the Fibonacci number for the nth term. Recall, the first Fibonacci number is 0 and the second Fibonacci number is 1. The next number in the sequence is always determined by the sum of the previous two terms or numbers in the sequence. Fib (n) Fib (n-1)+ Fib (n-2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
