Commit 277caba2 by BellCodeEditor

save project

parent 297a115f
Showing with 11 additions and 0 deletions
......@@ -17,3 +17,13 @@ def tree(n):
pen.up()
pen.backward(n)
pen.down()
def tree(n):
if n >= 50:
pen.forward(n)
pen.right(30)
tree(n-50)
pen.right(60)
tree(n-50)
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