تمرین اول: به تاریخ ۱۴ مهر ۱۳۹۷ ---------مهلت تحویل : ۲۰ مهر ۱۳۹۷
import turtle
alex = turtle.Turtle()
wn = turtle.Screen()
def r():
alex.rt(10)
def l():
alex.lt(10)
wn.onkey(l, 'Left')
wn.onkey(r, 'Right')
wn.listen()
while (True):
alex.fd(0.2)
alex = turtle.Turtle()
wn = turtle.Screen()
def r():
alex.rt(10)
def l():
alex.lt(10)
wn.onkey(l, 'Left')
wn.onkey(r, 'Right')
wn.listen()
while (True):
alex.fd(0.2)