Can’t figure out what is wrong with this code
line 14, the keyword should be “else”, “except” works with “try”
How about this solution?
try:
a = int(input("side of a"))
b = int(input("side of b"))
c = int(input("side of c"))
if a==b==c:
print("Equilateral triangle")
elif a==b or a==c or b==c:
print("isosceles triangle")
else:
print("scalene triangle")
except:
print("No triangle exists, the value entered was not a number.")