[Tutor] How do I make a Python program keep repeating?
python-tutor@toddmaynard.com
python-tutor at toddmaynard.com
Sun Jul 31 02:40:51 CEST 2005
How does the user indicate that they are done with the program?
One solution is to ask at the end of each iteration if they want to repeat.
Psuedocode:
keep_going=True
while(keep_going)
Run your program stuff
keep_going = get_user_response("Do you want to run again?")
--Todd
On Saturday 30 July 2005 08:10 pm, Nathan Pinno wrote:
> Hi all,
>
> How do I make a program keep repeating until the user is done with it?
>
> Thanks,
> Nathan
More information about the Tutor
mailing list