Feb-04-2017, 08:20 AM
Ok, I have just been learning about defining functions and calling them, so I tried to use that idea with this code. ichabod801 I used your tuples to size the squares.
import turtle prev = 0 fibno = 1 john = turtle.Turtle() sqs = input("How many Squares do you want? ") def draw_square(t, sz): for i in range (6): t.forward(sz) t.left(90) for i in range(int(sqs)): john.right(90) draw_square(john, fibno*5) prev, fibno = fibno, fibno+prev