class TriangleError(Exception):
    pass


class Triangle(object):
    def __init__(self):
        pass

@@ -81,16 +81,23 @@
 t__(self
+, *dims
 ):%0A     
@@ -95,17 +95,586 @@
 s):%0A        
-pass
+if not self.is_valid(dims):%0A            raise TriangleError(%22Invalid dimensions: %7B%7D%22.format(dims))%0A        self.dims = dims%0A%0A    def kind(self):%0A        a, b, c = self.dims%0A        if a == b and b == c:%0A            return %22equilateral%22%0A        elif a == b or b == c or a == c:%0A            return %22isosceles%22%0A        else:%0A            return %22scalene%22%0A%0A    @staticmethod%0A    def is_valid(dims):%0A        if len(dims) != 3:%0A            return False%0A        a, b, c = dims%0A        return (a %3E 0 and b %3E 0 and c %3E 0) %5C%0A                and (a + b %3E c and a + c %3E b and b + c %3E a)
 %0A

Add initial solution