[Tutor] beginners question

Sheila King sheila@thinkspot.net
Mon, 18 Mar 2002 16:00:29 -0800


On Mon, 18 Mar 2002 15:37:45 -0800, "Sean Rhoades" <clogz@dreamsoft.com>
wrote about [Tutor] beginners question:

> I finished a little prog that asks ten multiplication questions 
> then gives you your percanteage correct, my questoin is how can 
> I have it start again by asking the user if they want to play again?


How about something like this?

playagain = 'y'
while playagain == 'y':
    <your code here>
	playagain = raw_input("Would you like to play again? (y/n) \n")



--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/