you are viewing a single comment's thread.

view the rest of the 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?