Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- users = {"Tester1" : "Test"}
- #Authetication of Players
- valid = False
- while not valid:
- username = input("Please enter your username: ")
- if username in users.keys():
- valid = True
- else:
- print("Username incorrect!")
- valid = False
- while not valid:
- password = input("Please enter your password: ")
- if password == users[username]:
- valid = True
- print("Access granted.")
- print("-----------------------------")
- else:
- print("Password incorrect!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement