Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Prompting for username and password
- username = input("Enter your username: ")
- password = input("Enter your password: ")
- # open password file
- f = open("password.txt", "r")
- # while username exists in file
- while username in f.read():
- username = input("Enter your username: ")
- f.close()
Add Comment
Please, Sign In to add comment