Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49152

Re: newbie question

From Gene Heskett <gheskett@wdtv.com>
Subject Re: newbie question
Date 2013-06-22 22:49 -0400
References <195f7100-c4bf-414d-a92f-5b8a70d896f7@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.3822.1372164608.3114.python-list@python.org> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

newbie question christhecomic@gmail.com - 2013-06-22 19:39 -0700
  Re: newbie question Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-22 19:50 -0700
  Re: newbie question Chris Angelico <rosuav@gmail.com> - 2013-06-23 12:48 +1000
  Re: newbie question Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-23 03:08 +0000
  Re: newbie question Gene Heskett <gheskett@wdtv.com> - 2013-06-22 22:49 -0400
  Re: newbie question Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-25 13:05 -0600
  Re: newbie question Tim Rowe <digitig@gmail.com> - 2013-06-25 20:26 +0100

csiph-web