- Run
python calculate.py
- Enter the figure name. Available are Circle, Square.
- Enter the function: Area or Perimeter.
- Enter figure sizes. Radius for circle, one side for square.
- Get the answer!
- Circle:
S = πR²
- Rectangle:
S = ab
- Square:
S = a²
- Triangle:
S = sqrt(p * (p-a) * (p-b) * (p-c))
where p is semiperimeter
- Circle:
P = 2πR
- Rectangle:
P = 2a + 2b
- Square:
P = 4a
- Triangle:
P = a + b + c
Some change for Lesson 6 practice