Question: how to solve quadratic equations using python?
Answer: # import complex math module. import cmath. a = float(input('Enter a: ')) b = float(input('Enter b: ')) c = float(input('Enter c: ')) # calculate the discriminant. d = (b**2) - (4*a*c) # find two solutions.