So I was making a quadradic equation solver in Python and when the calculation was happening, an error came up and I'm not sure what is happening.
from math import sqrt
a = float(input("a: "))
b = float(input("b: "))
c = float(input("c: "))
Z = (b * b) - (4 * a * c)
x1 = ((-b) + float(sqrt(Z))) / (2 * a)
x2 = ((-b) - float(sqrt(Z))) / (2 * a)
print("x = " + str(x1))
print("x = " + str(x2))
This is the code.