Skip to content

A shape calculator in Python, providing classes for rectangles and squares with various functionalities.

Notifications You must be signed in to change notification settings

aymane66/shape-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Shape Calculator

This project implements a shape calculator in Python, providing classes for rectangles and squares with various functionalities.

Features

  • 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

Installation

  1. Clone the repository:
    git clone https://github.com/aymane66/shape-calculator.git
    
    
  2. Change into the project directory:
    cd shape-calculator
    
  3. Run your Python scripts:
    python main.py
    
    

Usage

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.

About

A shape calculator in Python, providing classes for rectangles and squares with various functionalities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages