Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CorrectUsername = "WALLACE"
- CorrectPassword = "GROMIT"
- loop = True
- while (loop == True):
- username = input("Please enter your username: ")
- if (username == CorrectUsername):
- password = input("Please enter your password: ")
- if (password == CorrectPassword):
- print("Logged in successfully as " + username + “.”)
- loop = False
- else:
- print("Password incorrect!")
- else:
- print("Username incorrect!")
Add Comment
Please, Sign In to add comment