Loop Question
Lutz Horn
lutz.horn at posteo.de
Mon Jun 24 08:20:36 EDT 2013
Hi,
Am 24.06.2013 14:12 schrieb christhecomic at 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/
More information about the Python-list
mailing list