I don't get any error messages, but my code doesn't print the x values.
from math import sqrt
a= float(input("a= "))
b= float(input("b= "))
c= float(input("c= "))
def roots(a,b,c):
disc = b**2 - 4*a*c
if disc >= 0:
return ("x= ",(-b + sqrt(disc))/(2*a), "x= ",(-b - sqrt(disc))/(2*a))
if disc < 0:
return ("x= ",-b/(2*a),"+",sqrt(disc*(-1))/(2*a),"i" \
"x= ",-b/(2*a),"-",sqrt(disc*(-1))/(2*a),"i")
print(roots(a,b,c))