Código
#!/usr/bin/python #Ecuaciones 2 Grado - by xassiz import math print "\n ----------------------------" print "\n # Ecuaciones 2 Grado #" print "\n # by xassiz #" print "\n ----------------------------\n" try: a = input("\n a = ") b = input("\n b = ") c = input("\n c = ") xmas = (-b + math.sqrt(b**2 - 4*a*c))/(2*a) xmenos = (-b - math.sqrt(b**2 - 4*a*c))/(2*a) print "\n\a x (+) = "+str(xmas)+"\n" print "\n\a x (-) = "+str(xmenos)+"\n" raw_input() except: print "\n\a Sin Solucion" raw_input()