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


Groups > comp.lang.python > #64323

Re: question about input() and/or raw_input()

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 <gheskett@wdtv.com>
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 <gheskett@wdtv.com>
To python-list@python.org
Subject Re: question about input() and/or raw_input()
Date Sun, 19 Jan 2014 15:09:22 -0500
References <roy-97803E.13302018012014@news.panix.com> <lbh4oc$nqv$1@reader1.panix.com> <roy-85D529.13372919012014@news.panix.com>
In-Reply-To <roy-85D529.13372919012014@news.panix.com>
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 <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5725.1390162736.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Sunday 19 January 2014 15:08:31 Roy Smith did opine:

> In article <lbh4oc$nqv$1@reader1.panix.com>,
> 
>  Grant Edwards <invalid@invalid.invalid> 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 <http://geneslinuxbox.net:6309/gene>
Required reading: 
<http://culturalslagheap.wordpress.com/2014/01/12/elemental/>
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.

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


Thread

question about input() and/or raw_input() Roy Smith <roy@panix.com> - 2014-01-18 13:30 -0500
  Re: question about input() and/or raw_input() Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-18 18:41 +0000
  Re: question about input() and/or raw_input() Emile van Sebille <emile@fenx.com> - 2014-01-18 10:49 -0800
  Re: question about input() and/or raw_input() Peter Otten <__peter__@web.de> - 2014-01-18 20:05 +0100
  Re: question about input() and/or raw_input() Terry Reedy <tjreedy@udel.edu> - 2014-01-18 16:33 -0500
    Re: question about input() and/or raw_input() Grant Edwards <invalid@invalid.invalid> - 2014-01-19 16:14 +0000
      Re: question about input() and/or raw_input() Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-01-19 12:12 -0500
        Re: question about input() and/or raw_input() Grant Edwards <invalid@invalid.invalid> - 2014-01-19 17:42 +0000
          Re: question about input() and/or raw_input() Chris Angelico <rosuav@gmail.com> - 2014-01-20 04:59 +1100
  Re: question about input() and/or raw_input() Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-01-18 21:17 -0500
  Re: question about input() and/or raw_input() Chris Angelico <rosuav@gmail.com> - 2014-01-19 13:46 +1100
  Re: question about input() and/or raw_input() Rustom Mody <rustompmody@gmail.com> - 2014-01-18 20:15 -0800
    Re: question about input() and/or raw_input() Chris Angelico <rosuav@gmail.com> - 2014-01-19 15:21 +1100
      Re: question about input() and/or raw_input() Rustom Mody <rustompmody@gmail.com> - 2014-01-18 20:43 -0800
        Re: question about input() and/or raw_input() Chris Angelico <rosuav@gmail.com> - 2014-01-19 15:59 +1100
          Re: question about input() and/or raw_input() Rustom Mody <rustompmody@gmail.com> - 2014-01-19 00:26 -0800
            Re: question about input() and/or raw_input() Chris Angelico <rosuav@gmail.com> - 2014-01-19 21:39 +1100
            Re: question about input() and/or raw_input() Ethan Furman <ethan@stoneleaf.us> - 2014-01-19 08:14 -0800
            Re: question about input() and/or raw_input() Chris Angelico <rosuav@gmail.com> - 2014-01-20 03:38 +1100
            Re: question about input() and/or raw_input() Ethan Furman <ethan@stoneleaf.us> - 2014-01-19 09:50 -0800
            Re: question about input() and/or raw_input() Chris Angelico <rosuav@gmail.com> - 2014-01-20 05:41 +1100
            Re: question about input() and/or raw_input() Ethan Furman <ethan@stoneleaf.us> - 2014-01-19 11:16 -0800
  Re: question about input() and/or raw_input() Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-01-19 06:24 +0000
  Re: question about input() and/or raw_input() Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-19 18:07 +0000
    Re: question about input() and/or raw_input() Grant Edwards <invalid@invalid.invalid> - 2014-01-19 18:15 +0000
      Re: question about input() and/or raw_input() Roy Smith <roy@panix.com> - 2014-01-19 13:37 -0500
        Re: question about input() and/or raw_input() Chris Angelico <rosuav@gmail.com> - 2014-01-20 05:43 +1100
        Re: question about input() and/or raw_input() Grant Edwards <invalid@invalid.invalid> - 2014-01-19 19:11 +0000
        Re: question about input() and/or raw_input() Gene Heskett <gheskett@wdtv.com> - 2014-01-19 15:09 -0500
      Re: question about input() and/or raw_input() Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-19 19:17 +0000
      Re: question about input() and/or raw_input() Larry Martell <larry.martell@gmail.com> - 2014-01-19 12:24 -0700
      Re: question about input() and/or raw_input() Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-19 19:29 +0000
  Re: question about input() and/or raw_input() Gene Heskett <gheskett@wdtv.com> - 2014-01-19 15:12 -0500
  Re: question about input() and/or raw_input() Larry Martell <larry.martell@gmail.com> - 2014-01-19 13:22 -0700

csiph-web