Commit 5ec6d11e by BellCodeEditor

save project

parent 10722d02
Showing with 6 additions and 1 deletions
......@@ -2,7 +2,8 @@ import turtle
import random
def tree(n):
if n>=50
if n>=0
pen.pensize()
pen.forward(n)
angle = random.randint(0,30)
angle = random.randint(1,15)
......@@ -34,4 +35,7 @@ pen.forward(100)
pen.forward(-100)
pen.left(60)
pen.forward(100)
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