On Sat, Oct 2, 2010 at 7:45 PM, Steve Willoughby <st...@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 _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor