Guest User

Untitled

a guest
Nov 19th, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. # Prompting for username and password
  2. username = input("Enter your username: ")
  3. password = input("Enter your password: ")
  4.  
  5. # open password file
  6. f = open("password.txt", "r")
  7.  
  8. # while username exists in file
  9. while username in f.read():
  10. username = input("Enter your username: ")
  11.  
  12. f.close()
Add Comment
Please, Sign In to add comment