Fraction by Charawi Detphumi
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.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ShabiiFraction-0.0.1.tar.gz
(3.1 kB
view details)
File details
Details for the file ShabiiFraction-0.0.1.tar.gz
.
File metadata
- Download URL: ShabiiFraction-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.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94d183a1547ffc8e3ffed4b908d686c48bc3f69796b9d93071669fe14b451e11 |
|
MD5 | 13e1083e05239e5266c6cdd473db0b0e |
|
BLAKE2b-256 | 94dcd98a08896d5e2564bc33aee3e7b07b3501b5518432ac32c9ff63270e7b03 |