by @Melissa Alvarez Puerta Fork
 
id_6de31bb4_755d_4319_93bd_89fd941161a0 Begin id_a3078da4_4614_43e7_903d_8cc2493e7595 a = 0 id_6de31bb4_755d_4319_93bd_89fd941161a0:s->id_a3078da4_4614_43e7_903d_8cc2493e7595:n id_209d34d2_2ae4_446d_ae1e_db8f498ce801 b = 0 id_a3078da4_4614_43e7_903d_8cc2493e7595:s->id_209d34d2_2ae4_446d_ae1e_db8f498ce801:n id_19fe076c_5bdc_403c_acbd_7739b485c8ea c = 0 id_209d34d2_2ae4_446d_ae1e_db8f498ce801:s->id_19fe076c_5bdc_403c_acbd_7739b485c8ea:n id_b01ef293_a055_41ec_a737_dc78c6de703f a id_19fe076c_5bdc_403c_acbd_7739b485c8ea:s->id_b01ef293_a055_41ec_a737_dc78c6de703f:n id_d2887ca7_4097_4f17_8073_d66c3a884f7a b id_b01ef293_a055_41ec_a737_dc78c6de703f:s->id_d2887ca7_4097_4f17_8073_d66c3a884f7a:n id_f66bc443_2355_48d8_8bb5_b3f375d7188f c id_d2887ca7_4097_4f17_8073_d66c3a884f7a:s->id_f66bc443_2355_48d8_8bb5_b3f375d7188f:n id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43 a!=0 id_f66bc443_2355_48d8_8bb5_b3f375d7188f:s->id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43:n true_dummy_up_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43 id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43:e->true_dummy_up_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43 true false_dummy_up_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43 id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43:w->false_dummy_up_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43 false id_43a453aa_9220_470d_83f6_39b11b39d0c3 (pow(b,2)-4*a*c)>=0 true_dummy_up_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43->id_43a453aa_9220_470d_83f6_39b11b39d0c3:n id_5a1dcf6a_facb_48c4_bcd4_4a3b899d457f "El valor de a no es válido" false_dummy_up_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43->id_5a1dcf6a_facb_48c4_bcd4_4a3b899d457f:n true_dummy_up_id_43a453aa_9220_470d_83f6_39b11b39d0c3 id_43a453aa_9220_470d_83f6_39b11b39d0c3:e->true_dummy_up_id_43a453aa_9220_470d_83f6_39b11b39d0c3 true false_dummy_up_id_43a453aa_9220_470d_83f6_39b11b39d0c3 id_43a453aa_9220_470d_83f6_39b11b39d0c3:w->false_dummy_up_id_43a453aa_9220_470d_83f6_39b11b39d0c3 false id_73c13587_b6dd_4d9a_9a0c_33bb4c6c29d7 "El valor de su x1 es:" true_dummy_up_id_43a453aa_9220_470d_83f6_39b11b39d0c3->id_73c13587_b6dd_4d9a_9a0c_33bb4c6c29d7:n id_c65ed4d7_7345_4725_bb85_20887e42d203 "La solución de su ecuación cuadrática da una respuesta compleja (imaginaria)" false_dummy_up_id_43a453aa_9220_470d_83f6_39b11b39d0c3->id_c65ed4d7_7345_4725_bb85_20887e42d203:n id_d1d04924_2984_400a_bee0_44a301ede2f0 (-b+sqrt(pow(b,2)-4*a*c))/(2*a) id_73c13587_b6dd_4d9a_9a0c_33bb4c6c29d7:s->id_d1d04924_2984_400a_bee0_44a301ede2f0:n id_aaacf2d3_63b5_4ecc_a0b8_37798320b716 "El valor de su x2 es:" id_d1d04924_2984_400a_bee0_44a301ede2f0:s->id_aaacf2d3_63b5_4ecc_a0b8_37798320b716:n id_17125fe9_bc5c_4d32_8cd3_e516d5a108df (-b-sqrt(pow(b,2)-4*a*c))/(2*a) id_aaacf2d3_63b5_4ecc_a0b8_37798320b716:s->id_17125fe9_bc5c_4d32_8cd3_e516d5a108df:n true_dummy_down_id_43a453aa_9220_470d_83f6_39b11b39d0c3 id_17125fe9_bc5c_4d32_8cd3_e516d5a108df:s->true_dummy_down_id_43a453aa_9220_470d_83f6_39b11b39d0c3:n false_dummy_down_id_43a453aa_9220_470d_83f6_39b11b39d0c3 id_c65ed4d7_7345_4725_bb85_20887e42d203:s->false_dummy_down_id_43a453aa_9220_470d_83f6_39b11b39d0c3:n end_id_43a453aa_9220_470d_83f6_39b11b39d0c3 true_dummy_down_id_43a453aa_9220_470d_83f6_39b11b39d0c3->end_id_43a453aa_9220_470d_83f6_39b11b39d0c3 false_dummy_down_id_43a453aa_9220_470d_83f6_39b11b39d0c3->end_id_43a453aa_9220_470d_83f6_39b11b39d0c3 true_dummy_down_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43 end_id_43a453aa_9220_470d_83f6_39b11b39d0c3:s->true_dummy_down_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43:n false_dummy_down_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43 id_5a1dcf6a_facb_48c4_bcd4_4a3b899d457f:s->false_dummy_down_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43:n end_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43 true_dummy_down_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43->end_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43 false_dummy_down_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43->end_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43 id_eee1ab56_5181_4ad6_8046_6c96cedeab68 End end_id_22e38d5b_8a95_4b4f_b547_e2bb3189ee43:s->id_eee1ab56_5181_4ad6_8046_6c96cedeab68:n
import math

a = 0
b = 0
c = 0
a = input("Ingrese el valor de a de su ecuación cuadrática")
b = input("Ingrese el valor de b de su ecuación cuadrática")
c = input("Ingrese el valor de c de su ecuación cuadrática")
if a != 0:
  if (pow(b, 2) - 4 * a * c) >= 0:
    print("El valor de su x1 es:")
    print((-b + sqrt(pow(b, 2) - 4 * a * c)) / (2 * a))
    print("El valor de su x2 es:")
    print((-b - sqrt(pow(b, 2) - 4 * a * c)) / (2 * a))
  else:
    print("La solución de su ecuación cuadrática da una respuesta compleja (imaginaria)")
else:
  print("El valor de a no es válido")