Working with decimals part 2
Seymore4Head
Seymore4Head at Hotmail.invalid
Wed Aug 27 19:55:35 EDT 2014
On Tue, 26 Aug 2014 10:46:56 +1000, alex23 <wuwei23 at gmail.com> wrote:
>On 26/08/2014 3:55 AM, Seymore4Head wrote:
>> I changed the program just a little to give myself a little practice
>> with number formats. The main thing I wanted to do was make the
>> decimal points line up. The problem I am having is with the print
>> (count)(payment)(balance) line.
>
>While I don't want to discourage you from learning how to do it the long
>way, when you have a handle on it I highly recommend using a library for
>producing tabular data. tabulate is a very handy one, which supports
>lining up decimal points, amongst many other features:
>
>https://pypi.python.org/pypi/tabulate
>
>I personally find formatting text to be a pain and will always look for
>a better method.
Thanks for this link.
For some reason, I didn't see this message the day I started this
thread. I am still rechecking questions I have asked.
I don't think I am ready for this yet, but hopefully soon.
More information about the Python-list
mailing list