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
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
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
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
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