y = b**2 - 4*a*c if y < 0: raise TypeError('Error Expression!!!') x1 =( -b + math.sqrt(b**2 - 4*a*c) ) / (2*a) x2 =( -b - math.sqrt(b**2 - 4*a*c) ) / (2*a) return x1,x2
Sign in to make a reply
hcie_zpc