a = int(raw_input("A?"))
b = int(raw_input("B?"))
c = int(raw_input("C?"))
minusb = -b
bsquared = b**2
fourac = 4*a*c
twoa = 2*a
discriminant = bsquared + fourac
if discriminantt<0:
print "This quadratic have no real root."
elif determinant>=0:
answer1 = (minusb+((bsquared-fourac)**0.5))/twoa
answer2 = (minusb-((bsquared-fourac)**0.5))/twoa
print "X = %s and %s" % (answer1, answer2)
However, when the determinant is less than 0, instead of printing it simply runs an error message saying that answer1 and answer2 can't be done. How do you make the program stop running if discriminant<0?
PS: This is me simply trying to practice what I learnt online. Sorry if my code is terrible XD