Share your repls and programming experiences

← Back to all posts
The Q Type
kurner (6)

Although Python has a Fraction type (Rational Number), that hasn't always been true. What would a Fraction type look like in pure Python. The set of Rationals is known as Q, so the type name is Q too.