Guest User

Untitled

a guest
Dec 13th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. CorrectUsername = "WALLACE"
  2. CorrectPassword = "GROMIT"
  3.  
  4. loop = True
  5. while (loop == True):
  6. username = input("Please enter your username: ")
  7. if (username == CorrectUsername):
  8. password = input("Please enter your password: ")
  9. if (password == CorrectPassword):
  10. print("Logged in successfully as " + username + “.”)
  11. loop = False
  12. else:
  13. print("Password incorrect!")
  14. else:
  15. print("Username incorrect!")
Add Comment
Please, Sign In to add comment