Ask coding questions

← Back to all posts
hello again '_'
[deleted]

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!!!

Comments
hotnewtop
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?

[deleted]

i mean use the "space" or the "up" key to call certain fonctions like this:
import turtle
screen=turtle.Screen()
t=turtle.Turtle()
def right():
t.forward(100)
while True:
screen.mainloop()
screen.listen()
screen.onkey(right, "space")

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