2 Commits
Author SHA1 Message Date
Daniil.K 30494317cd L-04: Add rectangle.py 2021-03-31 15:33:42 +03:00
smartiqa d078c8d9ee L-03: Docs added 2021-03-04 14:59:51 +03:00
2 changed files with 17 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
# Math formulas
## Area
- Circle: S = πR²
- Rectangle: S = ab
- Square: S = a²
## Perimeter
- Circle: P = 2πR
- Rectangle: P = 2a + 2b
- Square: P = 4a
+7
View File
@@ -0,0 +1,7 @@
def area(a, b):
return a * b
def perimeter(a, b):
return (a + b)