Commit 3576bb7b by BellCodeEditor

save project

parent e6616be4
Showing with 3 additions and 1 deletions
......@@ -2,8 +2,10 @@ import turtle
def tree(n):
if n > 10:
pen.
pen.forward(n)
pen.right(30)
angle = random.randint(0,30)
pen.right(angle)
tree(n-10)
pen.left(60)
tree(n-10)
......
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