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


Groups > comp.lang.python > #49153

Re: Loop Question

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news2.arglkargh.de!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <lutz.horn@posteo.de>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.177
X-Spam-Level *
X-Spam-Evidence '*H*': 0.75; '*S*': 0.11; 'else:': 0.03; 'subject:Question': 0.07; 'alternatives': 0.09; 'proprietary': 0.16; 'print': 0.22; 'header:User-Agent:1': 0.23; 'software.': 0.24; 'header:In-Reply-To:1': 0.27; 'reporting': 0.29; '"please': 0.31; 'username': 0.31; 'skip:u 20': 0.35; 'hi,': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'free': 0.61; 'american': 0.66; 'online': 0.71; 'received:89.146': 0.84; 'received:89': 0.85; 'surveillance': 0.91; 'opt': 0.97
X-Virus-Scanned Debian amavisd-new at posteo.de
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding quoted-printable
Date Mon, 24 Jun 2013 14:20:36 +0200
From Lutz Horn <lutz.horn@posteo.de>
To <python-list@python.org>
Subject Re: Loop Question
In-Reply-To <afc4753e-d7b0-46b1-80d4-0e2fe8440871@googlegroups.com>
References <2149a85e-e41b-46bf-a12d-7565789748a9@googlegroups.com> <afc4753e-d7b0-46b1-80d4-0e2fe8440871@googlegroups.com>
X-Sender lutz.horn@posteo.de
User-Agent Posteo Webmail
X-Mailman-Approved-At Tue, 25 Jun 2013 14:50:06 +0200
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.3824.1372164608.3114.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1372164608 news.xs4all.nl 15996 [2001:888:2000:d::a6]:34408
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:49153

Show key headers only | View raw


Hi,

Am 24.06.2013 14:12 schrieb christhecomic@gmail.com:
> username=raw_input("Please enter your username: ")
> password=raw_input("Please enter your password: ")
> if username == "john doe" and password == "fopwpo":
>      print "Login Successful"
> else:
>      print "Please try again"

while not username or not password or username != "john doe" or 
password != "fopwpo":
     print "Please try again"
     username=raw_input("Please enter your username: ")
     password=raw_input("Please enter your password: ")

print "Login Successful"


-- 
Opt out of PRISM, the NSA’s global data surveillance program.
Stop reporting your online activities to the American government
with these free alternatives to proprietary software.
http://prism-break.org/

Back to comp.lang.python | Previous | NextPrevious in thread | Next 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