two-way decisions now that we have way to selectively execute certain statements in program using decisionsit' time to go back and spruce up the quadratic equation solver from here is the program as we left itquadratic py program that computes the real roots of quadratic equation notethis program crashes if the equation has no real roots import math def main()print("this program finds the real solutions to quadratic\ "abc eval(input("please enter the coefficients (abc)")discroot math sqrt( croot (- discroot( aroot (- discroot( aprint("\nthe solutions are:"root root main(as noted in the commentsthis program crashes when it is given coefficients of quadratic equation that has no real roots the problem with this code is that when ac is less than the program attempts to take the square root of negative number since negative numbers do not have real rootsthe math library reports an error here' an examplequadratic main(this program finds the real solutions to quadratic please enter the coefficients (abc) , , traceback (most recent call last)file "quadratic py"line in main(file "quadratic py"line in main discroot math sqrt( cvalueerrormath domain error we can use decision to check for this situation and make sure that the program can' crash here' first attempt