Square, Python, Intro, Mathematics, Roots.
-3 c = 2 discriminant = b**2 - 4*a*c if discriminant >= 0: root1 = (-b + math.sqrt(discriminant)) / (2*a) root2 = (-b - math.sqrt(discriminant)) / (2*a) print(f"The roots of the quadratic equation are {root1} and {root2}") else: print("The quadratic equation has complex roots") In this example, we