Re: [Tutor] Novice qustion

2009-09-24 Thread george fragos
2009/9/24 Oxymoron : >> print format % (item_width, 'Cantaloupes', price_width, 1.92) >> print format % (item_width, 'Dried Apricots (16 gr)' price_width, 8) > > > Notice the line before (works) and after (doesn't work - as the interpreter > pointed out), how do you separate items in a tuple? :-) >

Re: [Tutor] Novice qustion

2009-09-24 Thread Serdar Tumgoren
>>  File "test.py", line 18 >>    print format % (item_width, 'Dried Apricots (16 gr)' price_width, 8) >>                                                                   ^ >> SyntaxError: invalid syntax Oxymoron has pointed you in the right direction. After you fix that error, however, you'll get

Re: [Tutor] Novice qustion

2009-09-24 Thread Oxymoron
On Thu, Sep 24, 2009 at 10:15 PM, george fragos wrote: > print format % (item_width, 'Cantaloupes', price_width, 1.92) > print format % (item_width, 'Dried Apricots (16 gr)' price_width, 8) > Notice the line before (works) and after (doesn't work - as the interpreter pointed out), how do you sepa

[Tutor] Novice qustion

2009-09-24 Thread george fragos
 Hi all Pythons!  I'm new to Python and this List!  I'm reading Hetland's "Beginning Python" and I tried to test myself an example the book provides in 59:  width = input('Please enter width: ') price_width = 10 item_width = width - price_width header_format = '%-*s%*s' format        = '%-*s%*.