On 3/9/2016 2:39 AM, Ömer sarı wrote:
import turtle             # Allows us to use turtles
  wn = turtle.Screen()      # Creates a playground for turtles
  alex = turtle.Turtle()    # Create a turtle, assign to alex

  alex.forward(50)          # Tell alex to move forward by 50 units
  alex.left(90)             # Tell alex to turn by 90 degrees
  alex.forward(30)          # Complete the second side of a rectangle

  wn.mainloop()             # Wait for user to close window

Use 'turtle.mainloop' instead.

--
Terry Jan Reedy


--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to