<prompt> Andika kazi ya kutatua equations quadratic.  <response>: Certainly! Heres an implementation of the quadratic formula in Python:def solve_quadratica, b, c: Solves a quadratic equation of the form ax2 bx c 0. discriminant b2 - 4ac if discriminant 0: return None elif discriminant 0: return -b 2a else: root1 -b discriminant0.5 2a root2 -b - discriminant0.5 2a return root1, root2This function takes three arguments, a, b, and c, which represent the coefficients in the quadratic equation. It uses the square root function 0.5 to calculate the discriminant, which determines how many real roots the equation has. If the discriminant is negative, the function returns None, indicating that the equation has no real roots. If the discriminant is zero, the equation has one double root, which the function computes and returns. Finally, if the discriminant is positive, the equation has two distinct real roots, both of which the function computes and returns as a tuple. 