python-by-example-150-chall.../challenges60-68/challenge-066.py

10 lines
210 B
Python
Raw Normal View History

2019-07-18 21:31:50 +08:00
import turtle
import random
draw = turtle.Turtle()
draw.shape('turtle')
for i in range(8):
draw.pencolor(random.choice(['red','black','green','yellow','blue','orange']))
draw.forward(100)
draw.right(45)