0

So there is no error but it's also not doing what it's supposed to

from turtle import*
y = 3
x = 0

def Sydney():
    x = 10
    
while x < 5:
    if y == 3:
        onkey(Sydney,"w")
        listen()
    else:
        rt(90)
    
fd(100)

I'm expecting that if i press f the programm continues and the turtle moves 100 pixels forward

tadman
  • 208,517
  • 23
  • 234
  • 262

0 Answers0