from math import sqrt
a = raw_input("First length: ")
b = raw_input("Second length: ")
c = raw_input("Third length: ")
if a >0 and b >0 and c >0 and a + b > c and a + c > b and b + c > a :
if a == b == c:
print "Equilateral triangle."
elif a == b and a != c and b != c:
print "Isosceles triangle."
elif (a==sqrt(b*b+c*c) or b==sqrt(a*a+c*c) or c==sqrt(a*a+b*b)):
print "Right triangle."
else:
print "Simple triangle."
else:
print "The shape is not a triangle."
When I insert "2", "2" and "2" everything is working well, but when i enter "3" , "4" and "5" I get: "The shape is not a triangle." . Can you help me find the problem? (I saw now that I could find the solution on another post, but I ... didn't know the problem)