This is my code where I had to create it so it allows
- The user inputs the lengths of three sides of a triangle as Length1, Length2 and Length3
- If any two sides have the same length the program outputs "Isosceles"
- Otherwise the program outputs "Not isosceles"
However, the output part doesn't seem like working. I am new to this type of coding, so please help?
Length1 = raw_input()
Length2 = raw_input()
Length3 = raw_input()
print Length1
print Length2
print Length3
print Length1 == Length2
print Length2 == Length3
print Length1 == Length3
if Length1 == Length2 is True:
print "Isosceles"
else:
print "Not Isosceles"
if Length2 == Length3 is True:
print "Isosceles"
else:
print "Not Isosceles"
if Length1 == Length3 is True:
print "Isosceles"
else:
print "Not Isosceles"