Commit ecfc5960 by BellCodeEditor

save project

parent 1b8f781c
Showing with 21 additions and 7 deletions
def fibonacci(num): import turtle
if num <= 2: p = turtle.Pen()
return 1 p.color('sienna')
else: turtle.Screen().bgcolor('wheat')
return fibonacci(num-1) + fibonacci(num-2) p.sety(-50)
print(fibonacci(600)) p.left(90)
\ No newline at end of file p.pensize(5)
p.hideturtle()
p.speed(11)
size = 100
p.forward(size)
size /= 2
p.left(30)
p.forward(size)
p.penup()
p.backward(size)
p.pendown()
p.right(60)
p.forward(size)
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