This project implements a shape calculator in Python, providing classes for rectangles and squares with various functionalities.
- Calculate area, perimeter, and diagonal of rectangles
- Generate a simple ASCII art representation of rectangles
- Determine the number of smaller shapes that fit into a larger shape
- Clone the repository:
git clone https://github.com/aymane66/shape-calculator.git
- Change into the project directory:
cd shape-calculator
- Run your Python scripts:
python main.py
The project consists of two main files:
- shape_calculator.py: Contains the implementation of the Rectangle and Square classes.
- main.py: Example usage of the implemented classes.
This will showcase the functionality of the Rectangle and Square classes, including calculations and ASCII art representation.