Created by vef03715
Created on February 01, 2021
283 Bytes
from turtle import * from random import randint def wander(): xmax=140 ymax=100 speed(0) while True: forward(1) p=position() xcor=p[0] ycor=p[1] if xcor >= xmax or xcor <= -xmax or ycor <= -ymax or ycor >= ymax: left(randint(90,180))