Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jun 23rd, 2018 68 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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