noob question Letters in words?
Steven D'Aprano
steve at REMOVETHIScyber.com.au
Fri Oct 7 22:38:09 EDT 2005
On Fri, 07 Oct 2005 18:03:02 -0700, mensanator at aol.com wrote:
> Why not just look at the first letter the user types instead of
> the whole string?
>
> if choice1[0] in ('1', 'S', 's'):
> #do first option
> if choice1[0] in ('2', 'E', 'e'):
> #do second option
Is it *really* a good idea if the user types "STOP!!!" and it has the
same effect as if they typed "Start please"?
I've heard of "Do what I mean, not what I said" systems, which are usually
a really bad idea, but this is the first time I've seen a "Do what I don't
mean, not what I said" system.
--
Steven.
More information about the Python-list
mailing list