3 Commits
Author SHA1 Message Date
Daniil.K e6cf680b0e L-04: Add calculate.py and update docs 2024-04-05 15:49:42 +00:00
smartiqa 51c40ebfd0 L-04: Doc updated for triangle 2021-03-26 14:52:26 +03:00
smartiqa d080c7888b L-04: Triangle added 2021-03-26 14:48:39 +03:00
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -18,3 +18,4 @@
- Rectangle: `P = 2a + 2b`
- Square: `P = 4a`
- Triangle: `P = a + b + c`
+6
View File
@@ -0,0 +1,6 @@
def area(a, b, c):
return (a + b + c) / 2
def perimeter(a, b, c):
return a + b + c