Commit 4f6c2230 by BellCodeEditor

auto save

parent d16a31de
Showing with 23 additions and 0 deletions
import turtle
import random
def tree(10):
if n >= 0:
turtle.forward(10)
turtle.right(30)
tree(n-10)
turtle.left(60)
tree(n-10)
turtle.right(30)
turtle.up()
turtle.backward(10)
turtle.down()
turtle.color('sienna')
w = turtle.screen()
w.bgcolor('wheat')
turtle.left(90)
turtle.up()
turtle.backward(150)
turtle.down
tree(60)
turtle.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment