[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: newbie question
From:       Gene Heskett <gheskett () wdtv ! com>
Date:       2013-06-23 2:49:10
Message-ID: 201306222249.33354.gheskett () wdtv ! com
[Download RAW message or body]

On Saturday 22 June 2013 22:46:51 christhecomic@gmail.com did opine:

> Writing simple program asking a question with the answer being
> "yes"...how do I allow the correct answer if user types Yes, yes, or
> YES?
> 
> Thanks

AND each character coming in from the keyboard with $DF before adding it to 
the comparison buffer.  Makes it all uppercase.  Then compare it to the 
uppercase YES.

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
My web page: <http://coyoteden.dyndns-free.com:85/gene> is up!
My views 
<http://www.armchairpatriot.com/What%20Has%20America%20Become.shtml>
Although golf was originally restricted to wealthy, overweight Protestants,
today it's open to anybody who owns hideous clothing.
		-- Dave Barry
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
         law-abiding citizens.
-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic