wk.4.1.1

Write a procedure quadraticRoots(a, b, c) that returns a list containing the two roots of the quadratic equation. The roots can be in either order. You should handle the case of a = 0 by returning the single root of that (linear) equation. Beware of dividing integers.

import math
def quadraticRoots(a, b, c):
    x = math.sqrt(n)
    return x - math.floor(x) == 0

Page Source