[Tutor] What's the invalid syntax?

John Fouhy john at fouhy.net
Thu Aug 24 06:50:49 CEST 2006


On 24/08/06, Nathan Pinno <falcon3166 at hotmail.com> wrote:
> Sorry, but it only showed a text-box with the message "Invalid syntax!",
> then highlighted the %.

Ok, so that would be on this line, I guess?

    print "Guess ", %d1.0, "."(k)

Well, that's where the syntax error is, sure enough.  Your editor told
you; you didn't need to ask us.

In order to fix this bug, you need to figure out what you want to
achieve with this line of code, and then look at the documentation or
tutorials to figure out how to write the code correctly.

-- 
John.


More information about the Tutor mailing list