Question: Question 4b (2 points): Finding Edge Cases II The code below tries to solve the linear system: ax+b=cx+d Find an input (A, B, C, D)
Question 4b (2 points): Finding Edge Cases II
The code below tries to solve the linear system:
ax+b=cx+d
Find an input (A, B, C, D) that produces incorrect results. For the purposes of this question, False is considered a correst result for non-numeric inputs (strings, lists, etc.)

Question 4b (2 points): Finding Edge Cases ll The code below tries to solve the linear system: ax + b = cx + d Find an input (A, B, C, D) that produces incorrect results. For the purposes of this question, False is considered a correst result for non-numeric inputs (strings, lists, etc.) In [ ]: # Modify these values so that solveLinearBad does not produce correct results A=1 B=2 C-3 # Do not modify the code below this line def solveLinearBad(a, b, c, d): for i in [a, b, c, d]: if type(i) not in (int, float): return False -(b-d)/(c-a) return x In [ ]: ## This is what the autograder will see: solveLinearBad(A, B, C, D) In [ ]: # Hidden test cell for 4b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
