Example Numeric Program: quadratic.py # quadratic.py # Program to calculate real roots # of a quadratic equation import math a, b, c = input("Enter the coefficients (a, b, c): ") discRoot = math.sqrt(b * b - 4 * a * c) root1 = (-b + discRoot) / (2 * a) root2 = (-b - discRoot) / (2 * a) print "\nThe solutions are:", root1, root2