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

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to