daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Jun 23rd, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from turtle import *
  2.  
  3.  
  4. pensize(5)
  5. pencolor('skyblue')
  6. branches = int(input("How many branches?"))
  7. eq = 360/branches
  8. for count in range(branches):
  9.   forward(100)
  10.   #first branch
  11.   left(45)
  12.   forward(50)
  13.   backward(50)
  14.   #second branch
  15.   right(90)
  16.   forward(50)
  17.   backward(50)
  18.   #mid branch
  19.   left(45)
  20.   forward(50)
  21.   backward(150)
  22.   #start new branch
  23.   left(eq)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top