Question: In this take-home lab assignment, Mary completed the get_roots(a,b,c) function as follows in order to print the roots of two equations. def get_roots (a,b,c): root1,
In this take-home lab assignment, Mary completed the get_roots(a,b,c) function as follows in order to print the roots of two equations. def get_roots (a,b,c): root1, root2 =4.0,2. root1, root2 =1.0,1. return root1, root2 print (get_roots (1,2,8)) \# expected output: (4.,2.0) print (get_roots(1,2,1)) expected output: (1.,1.0) Which statement(s) in the following is/are correct? (Choose All correct answer(s)) The first print statement outputs the roots 1.0 and 1.0; the second print statement outputs the roots 4.0 and 2.0 The function always returns the roots 1.0 and 1.0 The outputs from the two print statements are the same The function always returns the roots 4.0 and 2.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
