Commit f0e11aef by BellCodeEditor

save project

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