Skip to main content

Fraction by Adisak Karnbanjong

Project description

package_name is a Python library for dealing with XXXXXXX.

Installation

Use the package manager pip to install Package_name.

pip install package_name

Usage

from package_name import Fraction

a,b,c,d = [int(e) for e in input().split()]
fraction1 = Fraction(a,b)
fraction2 = Fraction(c,d)
print(f"fraction1 = {fraction1}")
print(f"fraction2 = {fraction2}")
print(f"fraction1+fraction2 = {fraction1+fraction2}")
print(f"fraction1-fraction2 = {fraction1-fraction2}")
print(f"fraction1*fraction2 = {fraction1*fraction2}")
print(f"fraction1/fraction2 = {fraction1/fraction2}")

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Author

Adisak Karnbanjong

License

MIT

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

akfraction-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file akfraction-0.0.1.tar.gz.

File metadata

  • Download URL: akfraction-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for akfraction-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c8d3f39ae17e473c6da3228f752810aa180e3c2cfcc69c69b8267ef9e6f1f0f5
MD5 19ecb1fa18f7a260d9ea405f7473d545
BLAKE2b-256 8ee6e51427c5a51f4e17692480f48150251fe8e993bb9c4c3717a8acb94ef65f

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