noob question Letters in words?

Steven D'Aprano steve at
Sat Oct 8 05:26:14 CEST 2005

On Fri, 07 Oct 2005 22:21:38 -0400, Ivan Shevanski wrote:

> Yes, I realize that. . .Heres another question then. I was trying somehting 
> before so that if the user just pressed enter by accident, it would not 
> accept the input and ask them to put in another. But the thing is I couldnt 
> get it to work. I tryed if choice1 == None it would loop and ask for a new 
> input but that didnt seem to work. . .Any ideas for that?

Test for choice1 == "" (the empty string) instead of None.


More information about the Python-list mailing list