package_name is a Python library for dealing with XXXXXXX.
Use the package manager pip to install Package_name.
pip install package_name
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}")
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.
Adisak Karnbanjong