def printRoots(a, b, c):
D = b**2 - 4 * a * c
import math
print D
x1 = (-b + math.sqrt(D)) / 2 * a
x2 = (-b - math.sqrt(D)) / 2 * a
print "x1 =", x1, "\nx2 =", x2
printRoots(1,4,1)
12
x1 = -0.267949192431
x2 = -3.73205080757
---------------------
(program exited with code: 0)
Press return to continue