Archive for 'Python'

Printing fractions with Python

I recently converted from bc to Python for basic calculations, and I like the fact that I can do basic arithmetic from the Python interpreter: $ python >>> 5.0 / 3.0 1.6666666666666667 One thing that bugged me about this was the fact that I had to add a decimal point to the input values to [...]

  Recent Entries »