0

Need help with a program on recursive which also includes TurtleWorld.

I am referring the PDF from thinkpython. It had this code, of which I am not able to understand the flow. Any help will be highly appreciated. def draw(t, length, n) if n ==0 return angle = 50 fd(t, length*n) lt(t, angle) draw(t, length*n-1) rt(t, 2*angle) draw(t, length, n-1) lt(t, angle) bk(t, length*n) Once again, help would be really appreciated.

24th Jun 2017, 2:13 PM
Jason Scott
Jason Scott - avatar
2 Respostas
0
What is your question? Please elaborate
28th Jun 2017, 6:22 AM
Matt hias
Matt hias - avatar
0
what I meant was within the function draw, I am unable to understand the flow of the code. Which step is getting executed when that is what I am unable to grasp.
28th Jun 2017, 6:27 AM
Jason Scott
Jason Scott - avatar