>> 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 another one from a different part of your program. In general, the error information you get back from the python interpreter will point you in the right direction. In the above case, it tells you precisely where the problem is: Line 18 in test.py
Whenever you get errors, you can use the traceback information as a way to pinpoint where you should start hunting for the error. HTH! Serdar _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor