Skip to main content

My First Package

Project description

Area Calculator

first_package

first_package is a Python package that provides a set of functions to calculate the areas of geometric shapes. It includes a module named Area_Fig.py containing three functions:

  • square_area(side_length): Calculates the area of a square given the length of its side.
  • rectangle_area(length, width): Calculates the area of a rectangle given its length and width.
  • circle_area(radius): Calculates the area of a circle given its radius.

Installation

Install first_package using pip: pip install first_package

Usage

from first_package.Area_Fig import square_area, rectangle_area, circle_area

Calculate the area of a square

print(square_area(5))

Calculate the area of a rectangle

print(rectangle_area(4, 6))

Calculate the area of a circle

print(circle_area(3))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AreaOfFig24test-0.0.2.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

AreaOfFig24test-0.0.2-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page