import math, turtle, random def drunk(human, step, time): for i in range(time): direction = random.randint(0,7) angle = 45*direction human.left(angle) human.forward(step) return #----- joe = turtle.Turtle() joe.color("blue") joe.penup() joe.goto(-100,100) joe.pendown() bob = turtle.Turtle() bob.color("red") bob.penup() bob.goto(100,-100) bob.pendown() for i in range(20): drunk(joe, 10, 10) drunk(bob, 10, 10)