Tim Williams (gmail) wrote:
> The following will accept any subset of "carmel" in upper, lower or 
> mixed case  
> 
> EG   Carmel, carmel, Carm, mel etc
> 
>  >>> if raw_input ("hello what's your name? ").lower() in 'carmel':
> ....     print "Ahh the boss's wife" 

It's so powerful, it accepts even the empty string... try typing just 
the ENTER key...

-Peter

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to