[Tutor] Novice qustion

Oxymoron moron.oxy at gmail.com
Thu Sep 24 14:23:31 CEST 2009


On Thu, Sep 24, 2009 at 10:15 PM, george fragos <fragos.george at gmail.com>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 separate items in a tuple? :-)

Did not check the rest of it.

anvo at deadend:~/Desktop$ python test.py

>  File "test.py", line 18
>    print format % (item_width, 'Dried Apricots (16 gr)' price_width, 8)
>                                                                   ^
> SyntaxError: invalid syntax
>
> I double checked my typing and I see no errors in it (I copied it from
> the book exactly as it is)!  Are there any...?  What's the "invalid"
> in my "syntax"?
>
> Thanx for the help!
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>



-- 
There is more to life than increasing its speed.
-- Mahatma Gandhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090924/a79f236d/attachment.htm>


More information about the Tutor mailing list