Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhamu785 committed Aug 28, 2022
1 parent 48e0e8d commit 508c88e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from pack import math
a = math.perimeter()
print(a.circle(5))
print(a.rectangle(5,10))
11 changes: 10 additions & 1 deletion pack/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,13 @@ def circle(self,r):
return 2*self.pi*r

def rectangle(self,l,b):
return 2*(l+b)
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

0 comments on commit 508c88e

Please sign in to comment.