<div>Hello all,</div>  <div>&nbsp;</div>  <div>I now have my bit of code in while loop form and it works!&nbsp; It's great but not exactly what I wanted to do.&nbsp; I've been googling my heart out and I find lots of info on while loops and lots of info on timers that will execute an action&nbsp;AFTER a given interval but nothing on a timer that will execute an action DURING a given interval.&nbsp; What I'd really like to do at this point in my game is have the player execute the loop for 30 seconds then have it print the final score and break.&nbsp; Does anyone out there have any code that'll do that?</div>  <div>&nbsp;</div>  <div>Here's what I've got.&nbsp; I'm sure it ain't pretty and I'm happy to hear suggestions on cleaning it up as well.&nbsp; I know it needs some def's in there and possibly a class too.</div>  <div>&nbsp;</div>  <div>import random</div>  <div>startNum = random.choice(range(1, 9))<BR>print 'Start with the number ', startNum,'.&nbsp; Then continuously
 add 7 to that number until the timer runs out.&nbsp; You have 30 seconds.'<BR>score = 0<BR>answer = int(raw_input('Enter your answer: '))<BR>while (score &lt; 50):<BR>&nbsp;&nbsp;&nbsp; startNum = startNum + 7<BR>&nbsp;&nbsp;&nbsp; if startNum == answer:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print 'That is correct!'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; score = score + 5<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print 'Your score is ', score<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; answer = int(raw_input('Enter your answer: '))<BR>&nbsp;&nbsp;&nbsp; else:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print 'That is incorrect.&nbsp; Game over. Your final score is ', score<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break<BR>else:<BR>&nbsp;&nbsp;&nbsp; print 'You win! Your final score is ', score<BR></div>  <div>&nbsp;</div>  <div>&nbsp;</div><p>&#32;
      <hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a>