May-27-2020, 07:09 PM
__mul__
will implement f1 * f where f1 is instance of Fractionyou need to implement
__rmul__
for f * f1read https://docs.python.org/3/reference/data...t.__rmul__
and don't use
object
as argument, better use other
as per convention or some other name
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs