[Tutor] What's the invaild syntax? Error message and relative codesupplied.
Nathan Pinno
falcon3166 at hotmail.com
Mon Aug 1 02:04:45 CEST 2005
Thanks again Luke.
----- Original Message -----
From: "luke" <rabidpoobear at gmail.com>
To: "Nathan Pinno" <falcon3166 at hotmail.com>; <tutor at python.org>
Sent: Sunday, July 31, 2005 5:50 PM
Subject: Re: [Tutor] What's the invaild syntax? Error message and relative
codesupplied.
> NATHAN!
> you have had this exact same problem yesterday!
> cmon man.
> If you see an invalid syntax error,
> look on the preceeding line.
> it's usually caused by not enough parenthesis for your function call.
> so we scroll down to lines 64-66...
>
>> which = 1234
>> while which != -1:
>> which = int(raw_input("Change which Grade: ")
> tada there's our error.
> you forgot an extra parenthesis.
> however many (( you have on a line you need ot have the same number of ))
> on
> the line.
> which = int(raw_input("Change which Grade: ")
> becomes
> which = int(raw_input("Change which Grade: "))
>
> HTH,
> -Luke
>
>
More information about the Tutor
mailing list