Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.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: OK 0.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'beer': 0.05; 'subject:()': 0.09; 'subject:question': 0.10; 'cc:addr:python-list': 0.11; 'jan': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'roy': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'subject:/': 0.26; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'points': 0.29; 'raise': 0.29; 'message-id:@mail.gmail.com': 0.30; 'assert': 0.31; 'received:google.com': 0.35; '20,': 0.68; 'smith': 0.68; 'dart': 0.84; 'victory': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=Ne6bm2k0XFehvCqDxDZJ4ZTCFBCuAW4xBYj/5Mom2jI=; b=L8PkbzrIhhu7Wbu2addJmn+oL2xECagHAvk+x8yDPs31220of7AxpaaCoaZAPzRDpj tZ1tBc486cY1Ol9+Ojq3X7WIhTJpyV4SWF8ifWhydtHXsj9wAYNaT+u23K/apfskNiM/ AylB2I2com2Pglbx6Nb7Mx4W37JDBOj42aAI2FP2PIOvPIhpY9olmWgpOE9akVTXrEnX dlzUypyuECzCA/0zFFZLIjiUA3Eeqb/uTrDVmpRWUFXK9uAXVCKqucWEPUyHh16iVr4R ojNSwYvHfboENMDySUGVZS69dJ2cTNgVPudVQ1BH1baXyLWKhCkWSrIpwnAMLWzXf9JA +EdA== MIME-Version: 1.0 X-Received: by 10.68.130.103 with SMTP id od7mr14372503pbb.87.1390156988963; Sun, 19 Jan 2014 10:43:08 -0800 (PST) In-Reply-To: References: Date: Mon, 20 Jan 2014 05:43:08 +1100 Subject: Re: question about input() and/or raw_input() From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390156992 news.xs4all.nl 2977 [2001:888:2000:d::a6]:40278 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64308 On Mon, Jan 20, 2014 at 5:37 AM, Roy Smith wrote: > 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() assert victory raise beer ChrisA