Collection of my well documented small Python programs rational.py How to use from rational import Rational r1 = Rational(7,21) r2 = Rational(5,4) print r2/r1 print r1*17 Output 15/4 17/3