Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #49152
| Path | csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <gheskett@wdtv.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | UNSURE 0.424 |
| X-Spam-Level | **** |
| X-Spam-Evidence | '*H*': 0.28; '*S*': 0.12; 'subject:question': 0.10; 'buffer.': 0.16; 'soap,': 0.16; 'uppercase': 0.16; 'url:shtml': 0.16; 'keyboard': 0.24; 'cheers,': 0.24; 'question': 0.24; 'compare': 0.26; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'character': 0.29; 'originally': 0.30; 'comparison': 0.31; 'restricted': 0.31; 'yes.': 0.31; 'open': 0.33; 'url:non-standard http port': 0.33; 'received:66': 0.35; 'anybody': 0.35; 'up!': 0.36; 'thanks': 0.36; 'being': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'dangerous': 0.60; 'dave': 0.60; 'url:%20': 0.61; 'simple': 0.61; 'header:Message-Id:1': 0.63; 'email addr:gmail.com': 0.63; 'today': 0.64; 'charset:windows-1256': 0.64; 'more': 0.64; 'saturday': 0.68; 'url:%1': 0.72; 'million': 0.74; 'received:204': 0.75; 'hand': 0.80; 'citizens.': 0.84; 'golf': 0.84; 'boxes': 0.91; 'hands': 0.96; '2013': 0.98 |
| X-Spam-Status | No, score=-2.1 required=5.0 |
| X-Spam-Level | |
| From | Gene Heskett <gheskett@wdtv.com> |
| To | python-list@python.org |
| Subject | Re: newbie question |
| Date | Sat, 22 Jun 2013 22:49:10 -0400 |
| References | <195f7100-c4bf-414d-a92f-5b8a70d896f7@googlegroups.com> |
| In-Reply-To | <195f7100-c4bf-414d-a92f-5b8a70d896f7@googlegroups.com> |
| MIME-Version | 1.0 |
| Content-Type | Text/Plain; charset="windows-1256" |
| Content-Transfer-Encoding | 7bit |
| X-Mailman-Approved-At | Tue, 25 Jun 2013 14:50:06 +0200 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3822.1372164608.3114.python-list@python.org> (permalink) |
| Lines | 26 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1372164608 news.xs4all.nl 15968 [2001:888:2000:d::a6]:34404 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:49152 |
Show key headers only | 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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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