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


Groups > comp.lang.python > #49067

Re: Loop Question

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.028
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'else:': 0.03; 'subject:Question': 0.07; 'typed': 0.09; 'posted': 0.15; '"can\'t': 0.16; 'former,': 0.16; 'true:': 0.16; 'wrote:': 0.18; 'code.': 0.18; '>>>': 0.22; 'code,': 0.22; 'print': 0.22; 'header :User-Agent:1': 0.23; 'right.': 0.26; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'chris': 0.29; 'code': 0.31; 'you?': 0.31; '"please': 0.31; 'username': 0.31; 'writes:': 0.31; 'test': 0.35; "didn't": 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'expect': 0.39; 'does': 0.39; 'to:addr:python.org': 0.39; 'break': 0.61; 'john': 0.61; 'simply': 0.61; 'received:74.208': 0.68; 'fact,': 0.69; 'therefore': 0.72; 'received:74.208.4.194': 0.84
Date Mon, 24 Jun 2013 15:23:51 -0400
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6
MIME-Version 1.0
To python-list@python.org
Subject Re: Loop Question
References <2149a85e-e41b-46bf-a12d-7565789748a9@googlegroups.com> <e41ce3a3-c8cb-4cfc-ba86-462f40f322fc@googlegroups.com> <kqa3v3$ddf$1@reader2.panix.com> <mailman.3754.1372100014.3114.python-list@python.org> <kqa503$369$1@reader2.panix.com>
In-Reply-To <kqa503$369$1@reader2.panix.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:E9xqLCHbOHIgG72RQhudUTexLeJyM6AzCtbdNVPzdrG 9hUJnQIspxe+ibMsojcaGh7YEjJQbKoww7Ap3U9q5ObOk+a9Bt E0ObeNC0Rf+4+eQBOXqTy6+01E93rVzPrKJ+0GBjrzof/y4x/I s64gjOxSW+YcK8ERFk52B8VulSc0KNMMagYLQmY3AyzbeQY+rh gghdDh/qXV6vsICH8h3XWmdq2NH43tS/0Tan6N9acFk6GE7OQK WcRleDe906MHQw63S4v+bHAbYuTMGV8Bi68/SHRFoaF23IIlVr 7/J0tm7w5Qcn7yVPtbcbdgovrBQb/kGTctKgpQ3dgYv3JweEnw gU0lSjE39eVh1q+5BhiI=
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.3756.1372101844.3114.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1372101844 news.xs4all.nl 15960 [2001:888:2000:d::a6]:39649
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:49067

Show key headers only | View raw


On 06/24/2013 03:00 PM, John Gordon wrote:
> In <mailman.3754.1372100014.3114.python-list@python.org> =?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?= <kwpolska@gmail.com> writes:
>
>>> while True:
>>>      username = raw_input("Please enter your username: ")
>>>      password = raw_input("Please enter your password: ")
>>>
>>>      if username == "john doe" and password == "fopwpo":
>>>          print "Login Successful"
>>>          break
>>>
>>>      else:
>>>          print "Please try again"
>
>> You didn't test the code, did you?  Because the code you posted is
>> right.
>
> It's right, therefore I did not test it?  I don't understand.

I expect that Chris simply misinterpreted the quoting in your message, 
thinking that the OP had both typed the
   "Can't seem to get this to cooperate...where does t..."
and the correct code.  In fact, the OP typed the former, and you typed 
the latter.


-- 
DaveA

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


Thread

Loop Question christhecomic@gmail.com - 2013-06-23 16:18 -0700
  Re: Loop Question rurpy@yahoo.com - 2013-06-23 16:49 -0700
    Re: Loop Question christhecomic@gmail.com - 2013-06-23 20:24 -0700
  Re: Loop Question Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-24 00:23 +0000
  Re: Loop Question christhecomic@gmail.com - 2013-06-24 05:12 -0700
    Re: Loop Question rusi <rustompmody@gmail.com> - 2013-06-24 07:03 -0700
    Re: Loop Question Lutz Horn <lutz.horn@posteo.de> - 2013-06-24 14:20 +0200
    Re: Loop Question Dave Angel <davea@davea.name> - 2013-06-25 09:40 -0400
  Re: Loop Question christhecomic@gmail.com - 2013-06-24 11:23 -0700
    Re: Loop Question John Gordon <gordon@panix.com> - 2013-06-24 18:42 +0000
      Re: Loop Question Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2013-06-24 20:53 +0200
        Re: Loop Question John Gordon <gordon@panix.com> - 2013-06-24 19:00 +0000
          Re: Loop Question Dave Angel <davea@davea.name> - 2013-06-24 15:23 -0400

csiph-web