Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/python3
- from turtle import *
- from random import randint
- speed(0)
- penup()
- goto(-140,140)
- for step in range(15):
- write(step, align='center')
- right(90)
- forward(10)
- pendown()
- forward(150)
- penup()
- backward(160)
- left(90)
- forward(20)
- ada = Turtle()
- ada.color('red')
- ada.shape('turtle')
- ada.penup()
- ada.goto(0,150)
- ada.pendown()
- bob = Turtle()
- bob.color('blue')
- bob.shape('turtle')
- bob.penup()
- bob.goto(0,-100)
- bob.pendown()
- georgeta = Turtle()
- georgeta.color('yellow')
- georgeta.shape('triangle')
- georgeta.penup()
- georgeta.goto(-50,-50)
- georgeta.pendown()
- for turn in range(10000):
- ada.right(18)
- bob.left(18)
- georgeta.right(60)
- ada.forward(randint(50,80))
- bob.forward(randint(50,80))
- georgeta.forward(randint(50,100))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement