#try to avoid input function a = float(input()) b = float(input()) c = float(input()) d = ((-b)+((b*2)-4*a*c)(1/2))/2*a e = ((-b)-((b2)-4*a*c)(1/2))/2*a if ((b2)-4*a*c) > 1: print("Real roots",d,",",e) elif ((b2)-4*a*c) == 0: print("Equal roots",d,",",e) elif ((b*2)-4*a*c) < 1: print("Imaginary roots",d,",",e)
Click the run button. Try to avoid input() function.