How to start moving a turtle via space bar with python
问题 I'm trying to set up a simple turtle program in python where I can start moving the turtle with a press of the space bar, and he keeps moving until I hit the space bar again. I can get him to move a fixed distance with the space press but can't get it to continue. Here is what I'm working with: from turtle import * # PUT YOUR CODE HERE setup(800,600) home() pen_size = 2 color("blue") title("Turtle") speed("fastest") drawdist= 25 current_state = penup next_state = pendown #Button Instructions