[Tutor] What's the invalid syntax?

Alan Gauld alan.gauld at freenet.co.uk
Fri Aug 25 22:42:17 CEST 2006


Nathan,

> Sorry, but it only showed a text-box with the message "Invalid 
> syntax!", then highlighted the %.

OK, But if you try it from a command prompt you will get a proper
error message. But even if you tell us which line it is highlighting,
there are several % signs in your code.

Generally when pythonindicates a syntax error it will be within a
few lines of where the error occurs, so iut saves us a lot of reading!

Alan G.




More information about the Tutor mailing list