Alan Gauld wrote: > You never change i so this is always true. > Therefore you can express that better with... Thanks for your suggestions, I put together the following based on them: ############################################## def is_yes(question): while True: s = raw_input(question).lower() if s == 'y' or s == 'yes': return True elif s == 'n' or s == 'no': return False else: print '\nplease select y, n, yes, or no\n' ################################################
It seems to work perfectly :) -- Your friend, Scott Sent to you from a Linux computer using Kubuntu Version 7.04 (Feisty Fawn) _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor