diff --git a/main.py b/main.py index 103b81b..a7b9537 100644 --- a/main.py +++ b/main.py @@ -1,3 +1,3 @@ from pack import math a = math.perimeter() -print(a.circle(5)) \ No newline at end of file +print(a.rectangle(5,10)) \ No newline at end of file diff --git a/pack/math.py b/pack/math.py index d936d15..93a1caa 100644 --- a/pack/math.py +++ b/pack/math.py @@ -4,4 +4,13 @@ def circle(self,r): return 2*self.pi*r def rectangle(self,l,b): - return 2*(l+b) \ No newline at end of file + return 2*(l+b) + + def square(self,l): + return 4*l + + def triangle(self,a,b,c): + return a+b+c + + def eq_triangle(self,a): + return 3*a \ No newline at end of file