Advertisement
Guest User

CodeHS Colorful Bracelet Answer

a guest
Feb 28th, 2020
4,945
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.71 KB | None | 0 0
  1. speed(0)
  2.  
  3. #this makes beads the specified color and return to middle
  4. def make_purple_bead():
  5.     penup()
  6.     forward(100)
  7.     pendown()
  8.     color("purple")
  9.     begin_fill()
  10.     circle(10)
  11.     end_fill()
  12.     penup()
  13.     backward(100)
  14.     left(10)
  15.  
  16. def make_red_bead():
  17.     penup()
  18.     forward(100)
  19.     pendown()
  20.     color("red")
  21.     begin_fill()
  22.     circle(10)
  23.     end_fill()
  24.     penup()
  25.     backward(100)
  26.     left(10)
  27.    
  28. def make_blue_bead():
  29.     penup()
  30.     forward(100)
  31.     pendown()
  32.     color("blue")
  33.     begin_fill()
  34.     circle(10)
  35.     end_fill()
  36.     penup()
  37.     backward(100)
  38.     left(10)
  39.  
  40. for i in range(12):
  41.     make_purple_bead()
  42.     make_blue_bead()
  43.     make_red_bead()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement