Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Implement a class called Fraction that defines an immutable rational number.

- Gets a string representation of the Fraction instance, called by str()

Save your Fraction class implementation in a file called fraction.py. Write a small test

program that imports fraction.py as follows:

from fraction import Fraction

and use your Fraction class to clearly demonstrate that all of your magic methods work properly.

Save your test program in a file called test.py

Save the output of your test program in a file called output.txt

Remember that test.py and fraction.py need to be seperated.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question