Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30494317cd |
+2
-5
@@ -3,11 +3,8 @@
|
|||||||
- Circle: S = πR²
|
- Circle: S = πR²
|
||||||
- Rectangle: S = ab
|
- Rectangle: S = ab
|
||||||
- Square: S = a²
|
- Square: S = a²
|
||||||
- Hexagon: S = ((3 * 3**0.5)/2)a**2
|
|
||||||
- Pentagon: S = 5/2*a*h
|
|
||||||
## Perimeter
|
## Perimeter
|
||||||
- Circle: P = 2πR
|
- Circle: P = 2πR
|
||||||
- Rectangle: P = 2a + 2b
|
- Rectangle: P = 2a + 2b
|
||||||
- Square: P = 4a
|
- Square: P = 4a
|
||||||
- Hexagon: P = 6a
|
|
||||||
- Pentagon: P = 5a
|
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
def area(a, b):
|
||||||
|
return a * b
|
||||||
|
|
||||||
|
|
||||||
|
def perimeter(a, b):
|
||||||
|
return (a + b)
|
||||||
Reference in New Issue
Block a user