<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Hey all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Will the following code ever exit, or do I have to change something so that 
it will exit? It's a sample of what I'm currently working on.</DIV>
<DIV>import random</DIV>
<DIV>&nbsp;</DIV>
<DIV>def add(a,b):</DIV>
<DIV>&nbsp;&nbsp;&nbsp; answer = a+b</DIV>
<DIV>&nbsp;&nbsp;&nbsp; guess = float(raw_input(a," + ",b," = "))</DIV>
<DIV>&nbsp;</DIV>
<DIV>num1 = random.choice(range(1,10))</DIV>
<DIV>num2 = random.choice(range(1,10))</DIV>
<DIV>&nbsp;</DIV>
<DIV>q = random.choice(range(15,31)<BR>cq = 1<BR>while cq &gt;= 
q:<BR>&nbsp;&nbsp;&nbsp; add(num1,num2)<BR>&nbsp;&nbsp;&nbsp;&nbsp;if guess != 
answer:</DIV>
<DIV>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; print "Incorrect! The correct answer 
is: ",answer<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;incorrect += 
1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cq += 
1<BR>&nbsp;&nbsp;&nbsp;elif guess == 
answer:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print 
"Correct!"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;correct += 
1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cq += 
1<BR>else:<BR>&nbsp;&nbsp;&nbsp;print "Questions: ",q<BR>&nbsp;&nbsp;&nbsp;print 
"Correct: ",correct<BR>&nbsp;&nbsp;&nbsp;print "Percent Correct: 
",(correct/q)*100</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>Nathan Pinno</DIV></BODY></HTML>