import cmath
a = 5
b = 5
c = 5
d = b ** 2 - 4 * a * c
solution1 = (-b - cmath.sqrt(d)) / (2 * a)
solution2 = (-b + cmath.sqrt(d)) / (2 * a)
print(solution1)
print(solution2)
Quadratic formula solver in python