/geometric_lib

Лаба по гиту делаю 5й раз.

Primary LanguagePython

Geometric Lib

Contains functions for 4 geometric figures: - Rectangle - Square - Circle - Triangle

1. Square

- 'def area' Receives number **side** and returns area of square.
> Example: user inputs 2, function returns 4.
- 'def perimeter' Receives number **side** and returns perimeter of square. 
> Example: user inputs 2, function returns 8.

2. Rectangle

- 'def area' Receives numbers **2 sides** and returns area of rectangle.
> Example: user inputs 2, 3, function returns 6.
- 'def perimeter' Receives numbers **2 sides** and returns perimeter of rectangle.

3. Circle

- 'def area' Receives **radius** of a circle and returns it's area.
- 'def perimeter' Receives **radius** of a circle and returns it's perimeter.

4. Triangle

- 'def area' Receives **side and height** of a triangle and returns it's area.
- 'def perimeter' Receives **3 sides** of a triangle and returns it's perimeter.

Last commits:

- `4f62190` (HEAD -> main, origin/main, origin/HEAD) Uploaded error validations
- `2f19d29` Create main.yml
- `4021166` Uploaded unittests and a workflow
- `f2c3622` Updated documentation
- `00767dd` added documentation for every function and README.md
- `6344019` added triangle.py and fixed bug in rectangle.py
- `4ef8b34` added new file
- `d078c8d` L-03: Docs added
- `8ba9aeb` L-03: Circle and square added