Re: [Tutor] Field Width

2013-09-19 Thread Jenny Allar
Thanks, Dave. Your statement "it does nothing to guess what else you put on the line" was like a light bulb that went off in my head. I think I was relating the field width to a left, center, or right justification, and that's not the case at all. Well now I feel silly! Thanks, Jenny On

Re: [Tutor] Field Width

2013-09-19 Thread bob gailer
On 9/18/2013 12:50 PM, Jenny Allar wrote: I'm only a few days in to learning Python, so please bear with me. That's what we are here for. I need to line up the decimals on the printed information but I cannot get the text to look uniform at all. Suggestions to help us help you. - post only t

Re: [Tutor] Field Width

2013-09-19 Thread Dave Angel
On 18/9/2013 12:50, Jenny Allar wrote: > I'm only a few days in to learning Python, so please bear with me. > > I need to line up the decimals on the printed information but I cannot get > the text to look uniform at all. > > > Here is my code: > > > # Print infomation > print("The c

Re: [Tutor] Field Width

2013-09-19 Thread Peter Otten
Jenny Allar wrote: > I'm only a few days in to learning Python, so please bear with me. Welcome! > I need to line up the decimals on the printed information but I cannot get > the text to look uniform at all. > print("The cost of the carpet is $", format(subtotal,'9,.2f')) > print("The

[Tutor] Field Width

2013-09-19 Thread Jenny Allar
I'm only a few days in to learning Python, so please bear with me. I need to line up the decimals on the printed information but I cannot get the text to look uniform at all. Here is my code: def main(): # Set up constants for cost per yard, flat fee, and tax rate cost_carpet = 5.50