Commit bafd49fb by BellCodeEditor

save project

parent 5dd23b8d
Showing with 23 additions and 9 deletions
def peach(n): import turtle
if n == 10: pen=turtle.Turtle()
return 1 pen.color("sienna")
num = (peach(n+1)+1)*2 w=turtle.Screen()
return num w.bgcolor("wheat")
pen.left(90)
peach_num = peach(10) pen.up()
pen.backward(150)
pen.down()
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()
tree(100)
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