noob question Letters in words?

Steven D'Aprano steve at REMOVETHIScyber.com.au
Fri Oct 7 23:26:14 EDT 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.


-- 
Steven.




More information about the Python-list mailing list