Question: Create a new function called midFibRatio ( n ) that returns r from simpleFibRatio ( ) if no error occurs, but returns np . nan
Create a new function called midFibRation that returns r from simpleFibRatio if no error occurs, but returns npnan for the error raised by simpleFibRationerror from Question
Test your midFibRatio function for n and then n Assign the output to q Feel free to try it for other inputs.
Examples: midFibRatio
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
