python-by-example-150-chall.../challenges60-68/challenge-066.py
2019-07-18 16:31:50 +03:00

10 lines
210 B
Python

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)