Skip to main content

Area calculation of diferent figures.

Project description

AreaCalculationSergey 0.0

What is this?

The module allows you to calculate areas of different figures.

Installing

pip install AreaCalculationSergey

Quick Guide

from AreaCalculationSergey import area


instance = area.AreaCalc
instance.area_of_circle(radius)

There are three functions:

area_of_circle(radius, round_result=2) - allows you to calculate area of a circle, using only radius.

area_of_triangle(side1, side2, side3, round_result=2) - allows you to calculate area of a triangle, using three sides of triangle.

Also you can add additional argument to round the result, by default is 2.

right_triangle(side1, side2, side3) - allows you to know whether triangle is right or not.

How to add new metod

def area_rectangle(side1, side2, round_result=2):
    return side1 * side2


instance = AreaCalc()
instance.area_rectangle = area_rectangle
instance.area_rectangle(5, 4)

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

AreaCalculationSergey-1.5.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file AreaCalculationSergey-1.5.tar.gz.

File metadata

  • Download URL: AreaCalculationSergey-1.5.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for AreaCalculationSergey-1.5.tar.gz
Algorithm Hash digest
SHA256 af06fe0041e08940726e3cb34c1b3278b0502196c0fed5f59aeb5df4d2875c49
MD5 219f12490763e2703ac9cd85bfee791d
BLAKE2b-256 678b57c4b81fb8749e750c758977f9905b51d1c965e0d1018cde9229e20ab710

See more details on using hashes here.

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