Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.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.075 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.02; 'typed': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:program': 0.16; 'subject:question.': 0.16; 'wrote:': 0.18; 'this?': 0.23; 'mon,': 0.24; 'header:In-Reply-To:1': 0.27; 'record': 0.27; 'message-id:@mail.gmail.com': 0.30; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'received:google.com': 0.35; 'subject:Simple': 0.36; 'doing': 0.36; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'taught': 0.96; '2013': 0.98 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:to :content-type; bh=oCvl5OpddK4/9fZtjDhl1IcFsFU/HYJK/tW5So9gQ4E=; b=CtbqQAtwQ3LcW8bp2ROqHqXO2luk9C2mC0eUrq3qvedbA5wwyiA4zeMfZQwwSmhGqs z5whx9Jph8Plv8cjInl8wBr7NeZ4uux63RQYUozFvxW/T9sRlKsq5gfo1Tt9tU6KBsRk 29dBbPvDjDgYKz1XwjjxCs2WsCzE0BRF148xDHKaOjD+xT3KVfZWIUlIItpfiRWsyaNa 39NaW5Z5cQg6mbe2w1Wb5l3CLBoF4HLnSPKP+U/kbWEtZHp/gjYoY0Eb3pkxVIjhuy4m 9aPHia89fzuLfzhLuFdXshBesiyeAhUrW/L+sH7jFvpeS86wUTvHdNxJ8UYA1IUaNP5x mH1w== MIME-Version: 1.0 X-Received: by 10.58.100.234 with SMTP id fb10mr4510631veb.5.1370835208098; Sun, 09 Jun 2013 20:33:28 -0700 (PDT) In-Reply-To: References: Date: Mon, 10 Jun 2013 13:33:28 +1000 Subject: Re: Simple program question. From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370835216 news.xs4all.nl 15912 [2001:888:2000:d::a6]:42751 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47516 On Mon, Jun 10, 2013 at 1:06 PM, wrote: > if input()!=('duck', 'parry'): > if input()=='duck': > if input()=='parry': Every time you call input(), it waits for you to type something. You want to record what the person typed and then use it in each place. Have you been taught a means of doing this? ChrisA