Ask coding questions

← Back to all posts
hello again '_'

so, i because i needed to add files to my project with turtle module, and the python with turtle don't suport that.
i wan't to why the *** in a normal python repl i can't controle my turtle with key words!!!

ash15khng (710)

You could suggest this on the feedback page? Although there might be a reason why multiple files are not supported for turtle repls.
Also what do you mean by "control the turtle with keywords"? If you are referring to functions you can define functions in the same file and use them there?


i mean use the "space" or the "up" key to call certain fonctions like this:
import turtle
def right():
while True:
screen.onkey(right, "space")

and i don't why this code work in a turtle repl and not in a normal python one