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: 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 To: Subject: Re: Loop Question In-Reply-To: References: <2149a85e-e41b-46bf-a12d-7565789748a9@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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 Hi, Am 24.06.2013 14:12 schrieb christhecomic@gmail.com: > username=3Draw_input("Please enter your username: ") > password=3Draw_input("Please enter your password: ") > if username =3D=3D "john doe" and password =3D=3D "fopwpo": > print "Login Successful" > else: > print "Please try again" while not username or not password or username !=3D "john doe" or=20 password !=3D "fopwpo": print "Please try again" username=3Draw_input("Please enter your username: ") password=3Draw_input("Please enter your password: ") print "Login Successful" --=20 Opt out of PRISM, the NSA=E2=80=99s global data surveillance program. Stop reporting your online activities to the American government with these free alternatives to proprietary software. http://prism-break.org/