Path: csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!news2.euro.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.055 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'insert': 0.05; 'python': 0.11; 'times,': 0.14; 'arithmetic.': 0.16; 'does,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'number?': 0.16; 'program?': 0.16; 'subject:games': 0.16; 'wrote:': 0.18; 'thu,': 0.19; '(the': 0.22; "i've": 0.25; 'header :In-Reply-To:1': 0.27; 'tried': 0.27; 'leave': 0.29; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'figure': 0.32; 'moment': 0.34; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'right?': 0.36; 'next': 0.36; 'possible': 0.36; 'received:209': 0.37; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'aside': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'numbers': 0.61; "you're": 0.61; 'back': 0.62; 'increasing': 0.74; 'step,': 0.84; 'subject:skip:g 10': 0.84; 'trouble.': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=kCGHJnuDHaVHmkz/Cbj7KN0jPW/4Yms0xV4pLmoIO+I=; b=n+icVx71qBbKyKp+Nw6B/MlNivuHM1Lolj+YQjmQqZrNVMAqKCCyFk2BrEXLwKZtcM tX9j2kuYSw1K7J0wjDhHAXodsfNEl2So6ZL3Zx8lncdrYVGbC1e2psepfeG2uLEwKoZj cS15k1fbkLHd59i02NJkeh+vf3yjE7DTp5VObG6VLBIxDChJZc9E10ap1nh2KifrJqcW aqUKQbmyFTW6yqm6K5TNJYnRsi/H1YvuHBR4VixiHrL1gqTi3K9CD7isiRE54s9hhgjF zD3Y/3sy6k1zw1zkcOuPDgHt6uy62DmFaYq3yhwnTIbIkpKYCYclsDjMMcDJrM1DKgwh iHIw== MIME-Version: 1.0 X-Received: by 10.220.109.145 with SMTP id j17mr3974950vcp.34.1365661636871; Wed, 10 Apr 2013 23:27:16 -0700 (PDT) In-Reply-To: <3ede3be7-f008-407f-8d48-d2cff2bd1c81@googlegroups.com> References: <0e8b4a09-3d1d-4b92-a0ef-2274a2a651c9@googlegroups.com> <3ede3be7-f008-407f-8d48-d2cff2bd1c81@googlegroups.com> Date: Thu, 11 Apr 2013 16:27:16 +1000 Subject: Re: guessthenumber print games left From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365661639 news.xs4all.nl 2573 [2001:888:2000:d::a6]:41645 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43324 On Thu, Apr 11, 2013 at 4:15 PM, wrote: > The 2 makes the game play twice instead of 3 times, right? I've tried it = with the 1, but but I'm still having trouble. Again, to be exact, I want to= somehow make it count down from 2 (the number of games)and print. If that'= s what this does, is it possible to insert it into my original main program= ? Let's leave Python aside for a moment and go back to grade-school arithmeti= c. How do you count up to three? 1, 2, 3 How much do you add to a number to get to the next number? Once you figure out where you're starting, how much you're increasing at each step, and where you're stopping, you can put those numbers into your program. ChrisA