Commit f0e11aef by BellCodeEditor

save project

parent 1f3efb4e
Showing with 20 additions and 12 deletions
def func(n): import turtle
if n<=2: pen = turtle.Turtle()
return 1 pen.color('sienna')
else: w = turtle.Screen()
value=func(n-1)+func(n-2) w.bgcolor('wheat')
return value pen.left(90)
n=1 pen.up()
while func(n)<20: pen.backward(150)
n=n+1 pen.down()
print(n) pen.forward(100)
pen.left(30)
\ No newline at end of file pen.forward(50)
pen.backward(50)
pen.right(60)
pen.forward(50)
pen.backward(50)
pen.left(30)
pen.backward(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