Question: **************************Please use python***************************** 1.) The code is given below. Write the function quad that calculates the result of the quadratic formula and returns the results
**************************Please use python*****************************
1.) The code is given below. Write the function quad that calculates the result of the quadratic formula and returns the results to be printed.
def quad(a, b, c):
#Your code
def main():
a = float (input ("Enter coefficient a: "))
b = float (input ("Enter coefficient b: "))
c = float (input ("Enter coefficient c: "))
root1, root2, = quad (a, b, c)
print ()
print ("The solutions are: ", root1, root2)
Answer:
*********Function**********
def quad(a, b, c):
#Your Code
**********Print***************
Print result:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
