Write a function to return the sum of the roots of a quadratic equation ax**2 + bx + c = 0


Topic: Write a function to return the sum of the roots of a quadratic equation ax**2 + bx + c = 0

Solution

def sum_of_roots(a:float,c:float):
    if a:
        return c/a
    else:
        return None



List all Python Programs