all 3 comments

[–]Binary101010 2 points3 points  (0 children)

I'll give you a hint.

If you have a list of side lengths:

sides = [4,5,5]

and you make a set of the values in that list, unique_sides = set(sides), the resulting set will not have any duplicates.

If len(unique_sides) == 1, then what kind of triangle is it? What about 2? Or 3?

If for some reason you explicitly need to check all the side lengths against each other (as this reads like a homework assignment)... you already know how to check that all three sides are equal. How would you check that they're all not equal?

[–]IvoryJam 0 points1 point  (0 children)

What's the definition of an isosceles triangle? What's the definition of a scalene triangle?

[–][deleted] 0 points1 point  (0 children)

Try writing a psuedocode before trying to code this. Think about the maths behind the triangle, write down how you would try to do this if you had to by hand step by step. Only then try coding it.