Simpler solution:

for i in range(3):
  if input("Password: ") == "unicorn":
    print("Welcome in..")
    break
else:
  print("That must have been complicated..")

--
Bob Gailer
919-636-4239
Chapel Hill NC

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to