Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: UNSURE 0.282 X-Spam-Level: ** X-Spam-Evidence: '*H*': 0.50; '*S*': 0.06; ';-)': 0.03; "america's": 0.09; 'pointless': 0.09; 'subject:()': 0.09; 'subject:question': 0.10; 'darts': 0.16; 'roy': 0.16; 'soap,': 0.16; 'stumbled': 0.16; 'wrote:': 0.18; "aren't": 0.24; 'cheers,': 0.24; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'points': 0.29; 'raise': 0.29; 'accidentally': 0.31; 'url:non-standard http port': 0.33; 'there,': 0.34; 'received:66': 0.35; "can't": 0.35; 'but': 0.35; 'really': 0.36; 'next': 0.36; 'january': 0.37; 'to:addr :python-list': 0.38; 'explain': 0.39; 'url:01': 0.39; 'url:12': 0.39; 'to:addr:python.org': 0.39; 'dangerous': 0.60; 'received:unknown': 0.61; 'first': 0.61; 'header:Message-Id:1': 0.63; 'high': 0.63; 'charset:windows-1256': 0.64; 'more': 0.64; 'here': 0.66; 'smith': 0.68; 'sunday': 0.68; 'us,': 0.73; 'million': 0.74; 'received:204': 0.75; 'article': 0.77; 'url:wordpress': 0.78; 'hand': 0.80; 'citizens.': 0.84; 'dart': 0.84; 'url:2014': 0.84; 'boxes': 0.91; 'edwards': 0.91; 'hands': 0.96 X-Spam-Status: No, score=2.4 required=5.0 X-Spam-Level: ++ From: Gene Heskett To: python-list@python.org Subject: Re: question about input() and/or raw_input() Date: Sun, 19 Jan 2014 15:09:22 -0500 References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1256" Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 19 Jan 2014 21:18:54 +0100 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390162736 news.xs4all.nl 2976 [2001:888:2000:d::a6]:39829 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64323 On Sunday 19 January 2014 15:08:31 Roy Smith did opine: > In article , > > Grant Edwards wrote: > > I can still remember the point in my first trip to the UK when I > > accidentally stumbled across darts on TV. Given the endless variety > > (and quantity) of pointless crap that people watch here in the US, I > > can't really explain why I was so baffled and amused by darts on TV -- > > but I was. > > What's so complicated? > > points = 501 > for dart in throws(): > if points - dart == 0 and dart.is_double(): > raise YouWin > if points - dart < 0: > continue > points -= dart > beer.drink() Aren't you missing a fi there, or a next dart? ;-) 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) Genes Web page Required reading: Baseball is a skilled game. It's America's game - it, and high taxes. -- The Best of Will Rogers A pen in the hand of this president is far more dangerous than 200 million guns in the hands of law-abiding citizens.