#try to avoid input function a = int(input()) b = int(input()) c = int(input()) if a+b+c == 180 and 0 < a < 180 and 0 < b < 180 and 0 < c < 180: if a == b == c: print("Equilateral Triangle") elif a == b or a == c or b == c: print("Isosceles Triangle") else: print("Scalene Triangle") else: print("Invalid triangle")
Click the run button. Try to avoid input() function.