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


Groups > comp.lang.python > #47516

Re: Simple program question.

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 <rosuav@gmail.com>
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 <af6709e3-b446-443a-abe1-5f80d0c30387@googlegroups.com>
References <af6709e3-b446-443a-abe1-5f80d0c30387@googlegroups.com>
Date Mon, 10 Jun 2013 13:33:28 +1000
Subject Re: Simple program question.
From Chris Angelico <rosuav@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2953.1370835216.3114.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Mon, Jun 10, 2013 at 1:06 PM,  <eschneider92@comcast.net> 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

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


Thread

Simple program question. eschneider92@comcast.net - 2013-06-09 20:06 -0700
  Re: Simple program question. Chris Angelico <rosuav@gmail.com> - 2013-06-10 13:33 +1000
  Re: Simple program question. eschneider92@comcast.net - 2013-06-10 23:47 -0700
  Re: Simple program question. russ.pobox@gmail.com - 2013-06-11 00:25 -0700

csiph-web