News

You can also use Rational(1/2) but sometimes unexpected things can happen due to Python converting the division to binary, then a decimal, then a sympy.Rational. To avoid weird behaviour pass input ...
Python makes a pretty nice interactive calculator. You can do the other way around, too, with the builtin function bin(x). (And there are also hex() and oct() builtins, if you also need to go back ...