Commit 4698e28f by BellCodeEditor

save project

parent 53ec4203
Showing with 3 additions and 2 deletions
...@@ -14,6 +14,7 @@ pen.down() ...@@ -14,6 +14,7 @@ pen.down()
def tree(n): def tree(n):
if n>=0: if n>=0:
pen.speed)(0)
pen.forward(n) pen.forward(n)
pen.right(30) pen.right(30)
tree(n-10) tree(n-10)
...@@ -24,5 +25,4 @@ def tree(n): ...@@ -24,5 +25,4 @@ def tree(n):
pen.backward(n) pen.backward(n)
pen.down() pen.down()
tree(60) tree(60)
turtle.done() 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