Commit c38a099c by BellCodeEditor

save project

parent 04e81d1a
Showing with 12 additions and 10 deletions
import turtle
pen=turtle.Turtle()
pen.color('sienna')
w=turtle.Screen()
w.bgcolor('wheat')
pen.left(90)
pen.up()
pen.backward(150)
pen.down()
def tree(n):
if n>=50:
pen.forward(n)
......@@ -21,5 +11,16 @@ def tree(n):
pen.up()
pen.backward(n)
pen.down()
pen=turtle.Turtle()
pen.color('sienna')
w=turtle.Screen()
w.bgcolor('wheat')
pen.left(90)
pen.up()
pen.backward(150)
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