[Tutor] Character creator program

Ben Millane ben at richmondtravelsolihull.co.uk
Wed May 12 14:33:46 CEST 2010


Ok first off here is a link to my code

http://pastie.org/956909

My problem is, that although I have the program working how I want it to work in general. I still have an issue with the user input section. If my user inputs any of the options from the menu, the program works as it should. But say if the user accidentally pressed enter with no option entered the program ends with an error message, or if they put in the incorrect number or a letter, it returns an error.

What I would like to happen is for a "Choice invalid, please choose another option" message to come up if this happens, but I am unsure how to put this in.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100512/696e3256/attachment.html>


More information about the Tutor mailing list