Commit d9e7f86a by BellCodeEditor

save project

parent 6a4862e5
Showing with 16 additions and 2 deletions
...@@ -10,4 +10,18 @@ w.bgcolor('wheat') ...@@ -10,4 +10,18 @@ w.bgcolor('wheat')
pen.left(90) pen.left(90)
pen.up() pen.up()
pen.backward(150) pen.backward(150)
pen.down() pen.down()
\ No newline at end of file
def tree(n):
if n >= 50:
pen.forward(n)
pen.right(30)
tree(n-50)
pen.left(60)
tree(n-50)
pen.right(30)
pen.up()
pen.backward(n)
pen.down()
\ 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