[Tutor] Novice qustion

Serdar Tumgoren zstumgoren at gmail.com
Thu Sep 24 14:31:36 CEST 2009


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


More information about the Tutor mailing list