<reponame>agam21-meet/meet2019y1lab4<filename>Let's Move.py
import turtle
def up():
    turtle.goto(turtle.xcor(),turtle.ycor()+50)
def down():
    turtle.goto(turtle.xcor(),turtle.ycor()-50)
def left():
    turtle.goto(turtle.xcor()-50,turtle.ycor())
def right():
    turtle.goto(turtle.xcor()+50,turtle.ycor())
turtle.onkeypress(up,"w")
turtle.onkeypress(down, "s")
turtle.onkeypress(right, "d")
turtle.onkeypress(left, "a")
turtle.listen()
turtle.mainloop()
    
    

Move.py
import turtle
def up():
    turtle.goto(turtle.xcor(),turtle.ycor()+50)
def down():
    turtle.goto(turtle.xcor(),turtle.ycor()-50)
def left():
    turtle.goto(turtle.xcor()-50,turtle.ycor())
def right():
    turtle.goto(turtle.xcor()+50,turtle.ycor())
turtle.onkeypress(up,"w")
turtle.onkeypress(down, "s")
turtle.onkeypress(right, "d")
turtle.onkeypress(left, "a")
turtle.listen()
turtle.mainloop()