Python Rational Number Classification Diagram