[Tutor] Issue w/ while loops
Alan Gauld
alan.gauld at btinternet.com
Thu Nov 21 16:24:26 CET 2013
On 21/11/13 13:17, Rafael Knuth wrote:
> I'm only stuck at one point: How do I loop back to the beginning in
> case the user input is invalid?
Look at Peter's example. He set a variable to false when the input was
wrong. You can check that value in your while loop.
HTH
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list