from polygon import Polygon

class Triangle(Polygon):
    def __init__(self):
        '''
        use super() to call __init__ in base class and
        be sure we have 3 sides
        '''
        super().__init__(3)

    def area(self):
        import math
        a, b, c = self.sides
        'compute semi-perimeter'
        s = sum(self.sides) / 2
        "compute area using Heron's formula"
        area = math.sqrt((s * (s - a) * (s - b) * (s - c)))
        return area

print('I am in triangle.py')

f0dde24372571f708b3593f0c880628249190fe0
<mask token>


class Triangle(Polygon):

    def __init__(self):
        """
        use super() to call __init__ in base class and
        be sure we have 3 sides
        """
        super().__init__(3)
    <mask token>


<mask token>

<mask token>


class Triangle(Polygon):

    def __init__(self):
        """
        use super() to call __init__ in base class and
        be sure we have 3 sides
        """
        super().__init__(3)

    def area(self):
        import math
        a, b, c = self.sides
        """compute semi-perimeter"""
        s = sum(self.sides) / 2
        """compute area using Heron's formula"""
        area = math.sqrt(s * (s - a) * (s - b) * (s - c))
        return area


<mask token>

<mask token>


class Triangle(Polygon):

    def __init__(self):
        """
        use super() to call __init__ in base class and
        be sure we have 3 sides
        """
        super().__init__(3)

    def area(self):
        import math
        a, b, c = self.sides
        """compute semi-perimeter"""
        s = sum(self.sides) / 2
        """compute area using Heron's formula"""
        area = math.sqrt(s * (s - a) * (s - b) * (s - c))
        return area


print('I am in triangle.py')

from polygon import Polygon


class Triangle(Polygon):

    def __init__(self):
        """
        use super() to call __init__ in base class and
        be sure we have 3 sides
        """
        super().__init__(3)

    def area(self):
        import math
        a, b, c = self.sides
        """compute semi-perimeter"""
        s = sum(self.sides) / 2
        """compute area using Heron's formula"""
        area = math.sqrt(s * (s - a) * (s - b) * (s - c))
        return area


print('I am in triangle.py')

from polygon import Polygon

class Triangle(Polygon):
    def __init__(self):
        '''
        use super() to call __init__ in base class and
        be sure we have 3 sides
        '''
        super().__init__(3)

    def area(self):
        import math
        a, b, c = self.sides
        'compute semi-perimeter'
        s = sum(self.sides) / 2
        "compute area using Heron's formula"
        area = math.sqrt((s * (s - a) * (s - b) * (s - c)))
        return area

print('I am in triangle.py')
