Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #47516
| References | <af6709e3-b446-443a-abe1-5f80d0c30387@googlegroups.com> |
|---|---|
| Date | 2013-06-10 13:33 +1000 |
| Subject | Re: Simple program question. |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2953.1370835216.3114.python-list@python.org> (permalink) |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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