[Tutor] function error

roberto roberto03 at gmail.com
Sat Oct 2 20:47:45 CEST 2010


On Sat, Oct 2, 2010 at 7:45 PM, Steve Willoughby <steve at alchemy.com> wrote:
> On 02-Oct-10 10:32, Emile van Sebille wrote:
>>>
>>> File "my_turtle.py", line 19
>>> if (abs(turtle.position()[0])> turtle.window_height()/2) or
>>> ^
>>> SyntaxError: invalid syntax
>
> How does Python know that the next line is the continuation of your if
> statement, instead of the beginning of a new line of code?  You didn't do
> anything to indicate continuation, so it takes this as an incomplete
> statement. "If ... stuff ... or... (or what??)"
>

it's a simple editing problem :
my editor and my python idle don't ever complain about that problem,
sorry


-- 
roberto


More information about the Tutor mailing list