Skip to main content

Fraction by Tarid Suwansri

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

TSfraction-0.0.2.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file TSfraction-0.0.2.tar.gz.

File metadata

  • Download URL: TSfraction-0.0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for TSfraction-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b35d327f3a8f244368019f969f1c245227dd363430d39e278710a34ed8f91285
MD5 797e7310322597158e406af97c9bc2cc
BLAKE2b-256 ef9ffd6054a2c1828bb9fa48f5a5b158c9c7d034b61d60c8f742d2a2e17591c5

See more details on using hashes here.

Supported by

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