Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.058 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'subject:help': 0.08; 'string': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'responses.': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'this?': 0.23; 'decide': 0.24; 'fairly': 0.24; 'helpful': 0.24; 'sort': 0.25; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'responded': 0.31; 'figure': 0.32; 'checking': 0.33; 'received:209.85': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'similar': 0.36; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'anything': 0.39; 'to:addr:python.org': 0.39; 'even': 0.60; 'most': 0.60; 'saw': 0.77; 'done;': 0.84; '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=LEzA9iR05k1dyOMh0XuqwdxvZQPrBeywoWsTAaM1kzc=; b=W+nLQqxduY/jGOX+IoCcO3wI8QHm4CTWqSk1W/bgzkoqzg2UFRvH1PmJoig/YEa3EJ myW7FwjGgFrrvoahO36JoWuLH6B+f/tcWTdhwNcHKEQ4BrTaAN86PRgWguTUy7W+TAY+ qC6VysviIild/qIM3mLrQXJ23YC9Xk41cCMllHWjp51kORz1qL9IlMUSD3Vp63eSYxfc Br5jpCDXWfIJesbUn/tOkDWcMLXteI/ZEHrIV8YE01F9+Wf1wZmQLmmqEy1fR2RQMvhJ 2rpK0vZjnMnI5nSda66Au9obKBfGAyPMpxZdjVBo8h2ngmum33EwMmmFBLY5QwOwRnWZ ORxA== MIME-Version: 1.0 X-Received: by 10.52.97.8 with SMTP id dw8mr1180259vdb.91.1365527290794; Tue, 09 Apr 2013 10:08:10 -0700 (PDT) In-Reply-To: References: <596ca4b8-b5aa-4112-b086-6320108075f7@googlegroups.com> <1629a072-c512-439c-b751-c44f8e945c2e@googlegroups.com> Date: Wed, 10 Apr 2013 03:08:10 +1000 Subject: Re: While loop help 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365527293 news.xs4all.nl 2663 [2001:888:2000:d::a6]:60582 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:43203 On Wed, Apr 10, 2013 at 2:57 AM, wrote: > I responded before I saw this message, this was very helpful so I appreci= ate your quick and helpful responses. So do you think prompting for a strin= g and then checking if the string is true is a good practice for something = like this? When would checking for true/false be necessary? Prompting for a string is fairly standard. Just figure out what sort of string you want to look for. Play around with other programs with similar interfaces, and decide what you like. Anything you want to do can be done; most of them won't even be difficult. ChrisA