The function has two parameters, one giving the side-length and the other giving the length of the shortest line. The function should draw as many lines of the spiral that fit inside the window

def spiral(lenght,side):

for i in range(1,side+1,5):

lenght.forward(i)

lenght.right(90)

I made a start of the code, please check the code and let me known if I am going on the right track. Also please find a solution to the problem