<div>
<div> </div>
<div>Andy:</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> But they don't have any clue that there's a call stack involved, or that </blockquote>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">someday this could get them in trouble. I shudder to think about the </blockquote>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">blank looks that I will get if I try to explain why it could be a problem. </blockquote>
<div> </div>
<div>I'd praise those stumbling on recursion, use the opportunity to talk about </div>
<div>it more specifically, and about how some languages are based on it rather </div>
<div>intensively (others not so much).</div>
<div> </div>
<div>Greatest Common Divisor may be written both ways:</div>
<div> </div>
<div>def gcd(a,b):</div>
<div> while b:</div>
<div> a, b = b, a % b</div>
<div> return a</div>
<div> </div>
<div>or:</div>
<div> </div>
<div>def gcd(a,b):<br> if b:<br> return gcd(b, a % b)<br> return a</div>
<div> </div>
<div>But of course if your 10th graders are pathologically math phobic,</div>
<div>like so many of their college peers, you'll want to eschew any </div>
<div>such examples and deal purely with strings.</div>
<div> </div>
<div>Kirby</div>
<div> </div></div>