Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from turtle import *
- import random
- pen = Pen()
- pen.speed('fastest')
- # Finish this program to make a sunburst pattern using the Pen. Your
- # sunburst should consist of 180 separate lines, each two degrees apart.
- #2 move this line so that every line in the sunburst is a different random color
- pen.color(random.random(), random.random(), random.random())
- #1 finish the for loop below to make the 180 lines
- for i in range (0,50):
- # This code will make one line and turn 2 degrees to the right
- pen.forward(220)
- pen.backward(220)
- pen.right(2)
- #3 Make your own cool pattern.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement