no discrim calculate roots yes print "no rootsfigure quadratic solver as two-way decision should either print that there are no real roots or it should calculate and display the roots this is an example of two-way decision figure illustrates the situation in pythona two-way decision can be implemented by attaching an else clause onto an if clause the result is called an if-else statement if elsewhen the python interpreter encounters this structureit will first evaluate the condition if the condition is truethe statements under the if are executed if the condition is falsethe statements under the else are executed in either casecontrol then passes to the statement following the if-else using two-way decision in the quadratic solver yields more elegant solution quadratic py import math def main()print("this program finds the real solutions to quadratic\ "abc eval(input("please enter the coefficients (abc)")discrim if discrim print("\nthe equation has no real roots!"else