by @Felipe Londono Aristizabal Fork
 
id_666363c9_984c_4e90_8187_64f535fd3de7 Begin id_0a6ffe40_4b1e_4364_89c3_2a3da1bf1c12 Programa que lee tres números enteros positivos que representan los posibles lados de un triángulo y determina si dichos datos corresponden o no a un triángulo. En caso que si correspondan, el programa determina si se trata de un triángulo equilátero, isósceles o escaleno. id_666363c9_984c_4e90_8187_64f535fd3de7:s->id_0a6ffe40_4b1e_4364_89c3_2a3da1bf1c12:n id_71e0a02a_6b60_4ecb_888f_c57d75367d22 a = 0 id_0a6ffe40_4b1e_4364_89c3_2a3da1bf1c12:s->id_71e0a02a_6b60_4ecb_888f_c57d75367d22:n id_4b06bb2b_f91f_426d_966e_c2c93e752506 b = 0 id_71e0a02a_6b60_4ecb_888f_c57d75367d22:s->id_4b06bb2b_f91f_426d_966e_c2c93e752506:n id_ac0ed174_6079_477c_a00a_d1176f6d10c5 c = 0 id_4b06bb2b_f91f_426d_966e_c2c93e752506:s->id_ac0ed174_6079_477c_a00a_d1176f6d10c5:n id_8c123ba5_cd43_412e_9b0a_6b5c1460ea24 x1 id_ac0ed174_6079_477c_a00a_d1176f6d10c5:s->id_8c123ba5_cd43_412e_9b0a_6b5c1460ea24:n id_2b7ff6c8_9993_42b1_8f9e_d326c06e4c05 x2 id_8c123ba5_cd43_412e_9b0a_6b5c1460ea24:s->id_2b7ff6c8_9993_42b1_8f9e_d326c06e4c05:n id_eaa03453_348d_4d35_a0d4_2c915c9cc40b x3 id_2b7ff6c8_9993_42b1_8f9e_d326c06e4c05:s->id_eaa03453_348d_4d35_a0d4_2c915c9cc40b:n id_fc542e8e_d75e_413c_a2e0_9c962bae0bab a id_eaa03453_348d_4d35_a0d4_2c915c9cc40b:s->id_fc542e8e_d75e_413c_a2e0_9c962bae0bab:n id_a5198884_cffa_41c7_aa13_22d3e539b8d3 b id_fc542e8e_d75e_413c_a2e0_9c962bae0bab:s->id_a5198884_cffa_41c7_aa13_22d3e539b8d3:n id_0eeffbc0_06ee_4f24_bd27_b375ecf56494 c id_a5198884_cffa_41c7_aa13_22d3e539b8d3:s->id_0eeffbc0_06ee_4f24_bd27_b375ecf56494:n id_06036007_386b_4075_8a38_e2e7d8ab4e87 x1 = a+b id_0eeffbc0_06ee_4f24_bd27_b375ecf56494:s->id_06036007_386b_4075_8a38_e2e7d8ab4e87:n id_fa05587b_41e8_4d51_9b58_e3293d543c26 x2 = a+c id_06036007_386b_4075_8a38_e2e7d8ab4e87:s->id_fa05587b_41e8_4d51_9b58_e3293d543c26:n id_b0add42e_a520_4509_b5b8_6bb383a17e30 x3 = b+c id_fa05587b_41e8_4d51_9b58_e3293d543c26:s->id_b0add42e_a520_4509_b5b8_6bb383a17e30:n id_fb6431b6_4872_4f01_8a53_ea34d705bfc6 x1>c && x2>b && x3>a id_b0add42e_a520_4509_b5b8_6bb383a17e30:s->id_fb6431b6_4872_4f01_8a53_ea34d705bfc6:n true_dummy_up_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6 id_fb6431b6_4872_4f01_8a53_ea34d705bfc6:e->true_dummy_up_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6 true false_dummy_up_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6 id_fb6431b6_4872_4f01_8a53_ea34d705bfc6:w->false_dummy_up_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6 false id_3c4acf2e_95f1_452a_842b_f418b566008d a==b && b==c true_dummy_up_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6->id_3c4acf2e_95f1_452a_842b_f418b566008d:n id_b65ad86f_ff8e_4e6a_9381_a63392e4cc71 "Los lados ingresados no pueden formar un triángulo." false_dummy_up_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6->id_b65ad86f_ff8e_4e6a_9381_a63392e4cc71:n true_dummy_up_id_3c4acf2e_95f1_452a_842b_f418b566008d id_3c4acf2e_95f1_452a_842b_f418b566008d:e->true_dummy_up_id_3c4acf2e_95f1_452a_842b_f418b566008d true false_dummy_up_id_3c4acf2e_95f1_452a_842b_f418b566008d id_3c4acf2e_95f1_452a_842b_f418b566008d:w->false_dummy_up_id_3c4acf2e_95f1_452a_842b_f418b566008d false id_0fdf491a_faf6_46f9_8cca_c809aecc9061 "Forman un triángulo equilatero" true_dummy_up_id_3c4acf2e_95f1_452a_842b_f418b566008d->id_0fdf491a_faf6_46f9_8cca_c809aecc9061:n id_31d40660_2b70_4678_a850_61abab7d7a68 a==b || b==c || a==c false_dummy_up_id_3c4acf2e_95f1_452a_842b_f418b566008d->id_31d40660_2b70_4678_a850_61abab7d7a68:n true_dummy_down_id_3c4acf2e_95f1_452a_842b_f418b566008d id_0fdf491a_faf6_46f9_8cca_c809aecc9061:s->true_dummy_down_id_3c4acf2e_95f1_452a_842b_f418b566008d:n true_dummy_up_id_31d40660_2b70_4678_a850_61abab7d7a68 id_31d40660_2b70_4678_a850_61abab7d7a68:e->true_dummy_up_id_31d40660_2b70_4678_a850_61abab7d7a68 true false_dummy_up_id_31d40660_2b70_4678_a850_61abab7d7a68 id_31d40660_2b70_4678_a850_61abab7d7a68:w->false_dummy_up_id_31d40660_2b70_4678_a850_61abab7d7a68 false id_8ee53452_a19f_4d7f_9e96_c5ec0569858d "Forman un triángulo isósceles." true_dummy_up_id_31d40660_2b70_4678_a850_61abab7d7a68->id_8ee53452_a19f_4d7f_9e96_c5ec0569858d:n id_f52141d1_af9a_4540_8081_2140da82a1f3 a!=b && b!=c && a!=c false_dummy_up_id_31d40660_2b70_4678_a850_61abab7d7a68->id_f52141d1_af9a_4540_8081_2140da82a1f3:n true_dummy_down_id_31d40660_2b70_4678_a850_61abab7d7a68 id_8ee53452_a19f_4d7f_9e96_c5ec0569858d:s->true_dummy_down_id_31d40660_2b70_4678_a850_61abab7d7a68:n true_dummy_up_id_f52141d1_af9a_4540_8081_2140da82a1f3 id_f52141d1_af9a_4540_8081_2140da82a1f3:e->true_dummy_up_id_f52141d1_af9a_4540_8081_2140da82a1f3 true false_dummy_up_id_f52141d1_af9a_4540_8081_2140da82a1f3 id_f52141d1_af9a_4540_8081_2140da82a1f3:w->false_dummy_up_id_f52141d1_af9a_4540_8081_2140da82a1f3 false id_7cf100fb_b5de_4428_baaa_f89107267a60 "Forman un triángulo escaleno" true_dummy_up_id_f52141d1_af9a_4540_8081_2140da82a1f3->id_7cf100fb_b5de_4428_baaa_f89107267a60:n false_dummy_down_id_f52141d1_af9a_4540_8081_2140da82a1f3 false_dummy_up_id_f52141d1_af9a_4540_8081_2140da82a1f3->false_dummy_down_id_f52141d1_af9a_4540_8081_2140da82a1f3:n true_dummy_down_id_f52141d1_af9a_4540_8081_2140da82a1f3 id_7cf100fb_b5de_4428_baaa_f89107267a60:s->true_dummy_down_id_f52141d1_af9a_4540_8081_2140da82a1f3:n end_id_f52141d1_af9a_4540_8081_2140da82a1f3 true_dummy_down_id_f52141d1_af9a_4540_8081_2140da82a1f3->end_id_f52141d1_af9a_4540_8081_2140da82a1f3 false_dummy_down_id_f52141d1_af9a_4540_8081_2140da82a1f3->end_id_f52141d1_af9a_4540_8081_2140da82a1f3 false_dummy_down_id_31d40660_2b70_4678_a850_61abab7d7a68 end_id_f52141d1_af9a_4540_8081_2140da82a1f3:s->false_dummy_down_id_31d40660_2b70_4678_a850_61abab7d7a68:n end_id_31d40660_2b70_4678_a850_61abab7d7a68 true_dummy_down_id_31d40660_2b70_4678_a850_61abab7d7a68->end_id_31d40660_2b70_4678_a850_61abab7d7a68 false_dummy_down_id_31d40660_2b70_4678_a850_61abab7d7a68->end_id_31d40660_2b70_4678_a850_61abab7d7a68 false_dummy_down_id_3c4acf2e_95f1_452a_842b_f418b566008d end_id_31d40660_2b70_4678_a850_61abab7d7a68:s->false_dummy_down_id_3c4acf2e_95f1_452a_842b_f418b566008d:n end_id_3c4acf2e_95f1_452a_842b_f418b566008d true_dummy_down_id_3c4acf2e_95f1_452a_842b_f418b566008d->end_id_3c4acf2e_95f1_452a_842b_f418b566008d false_dummy_down_id_3c4acf2e_95f1_452a_842b_f418b566008d->end_id_3c4acf2e_95f1_452a_842b_f418b566008d true_dummy_down_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6 end_id_3c4acf2e_95f1_452a_842b_f418b566008d:s->true_dummy_down_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6:n false_dummy_down_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6 id_b65ad86f_ff8e_4e6a_9381_a63392e4cc71:s->false_dummy_down_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6:n end_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6 true_dummy_down_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6->end_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6 false_dummy_down_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6->end_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6 id_d826ace6_9c27_4d91_9db2_264c60edc774 End end_id_fb6431b6_4872_4f01_8a53_ea34d705bfc6:s->id_d826ace6_9c27_4d91_9db2_264c60edc774:n
import math
from random import randrange

 """ Programa que lee tres números enteros positivos que representan los posibles lados de un triángulo y determina si dichos datos corresponden o no a un triángulo. En caso que si correspondan, el programa determina si se trata de un triángulo equilátero, isósceles o escaleno. """ */
a = 0
b = 0
c = 0
x1 = 0
x2 = 0
x3 = 0
a = input("Ingrese el primer lado: ")
b = input("Ingrese el segundo lado: ")
c = input("Ingrese el tercer lado: ")
x1 = a + b
x2 = a + c
x3 = b + c
if x1 > c and x2 > b and x3 > a:
  if a == b and b == c:
    print("Forman un triángulo equilatero")
  else:
    if a == b or b == c or a == c:
      print("Forman un triángulo isósceles.")
    else:
      if a != b and b != c and a != c:
        print("Forman un triángulo escaleno")
      else:
        pass
else:
  print("Los lados ingresados no pueden formar un triángulo.")