So here is my dilemma... I have been trying to write the code to solve a quadratic equation by entering a, b, and c yet I get an invalid syntax error could someone help?

- Code: Select all
`from math import *`

def quadraticRoots( a , b , c ):

print( ax ** 2 + bx + c )

d = b ** 2 - 4 * a * c

if d < 0:

print ( "This equation has no solution" )

elif d == 0:

x = ( -b + sqrt (b ** 2 - 4 * a * c )) / ( 2 * a )

print (" This equation has one solution: " , x)

else:

x1 = ( -b - sqrt ( d )) / ( 2 * a)

x2 = ( -b - sqrt ( d )) / ( 2 * a)

print ("This equation has two solutions:" x1, x2)