Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
>>> from fractions import Fraction
>>> a = Fraction(1, 10)
>>> b = Fraction(2, 10)
>>> float(a + b)
>>> a + b == Fraction(3, 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.