Question: Must be in Python 3.6 (please have a screen shot on the code) L ISTING 15.2 ComputeFibonacci.py 1 def main(): 2 index = eval(input(Enter an
Must be in Python 3.6 (please have a screen shot on the code)

L ISTING 15.2 ComputeFibonacci.py
1 def main(): 2 index = eval(input("Enter an index for a Fibonacci number: ")) 3 # Find and display the Fibonacci number 4 print("The Fibonacci number at index", index, "is", ) 5 6 # The function for finding the Fibonacci number 7 def : 8 if index == 0: # Base case 9 return 0 10 elif index == 1: # Base case 11 return 1 12 else: # Reduction and recursive calls 13 return 14 15 main() # Call the main functio

15.7 (Fibonacci series) Modify Listing 15.2 so that the program finds the number of times the fib function is called. (Hint: Use a global variable and increment it every time the function is called.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
