[Tutor] turtle question

2017-05-17 Thread Grace Sanford
how do you reset the turtle's position without drawing a line from where it last was? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] turtle question

2017-05-17 Thread Peter Otten
Grace Sanford wrote: > how do you reset the turtle's position without drawing a line from where > it last was? Call turtle.penup() when you want to prevent it from drawing and pendown() to have it draw again. Example: import turtle for i in range(10): # draw a 20 units line turtle.forw