Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1. print("Sign up")
  2. # user will enter custom usermame and pass
  3.  
  4. username = input("Username: ")
  5. password = input("Password: ")
  6.  
  7. while True:
  8.     print("log in")
  9.     username1 = input("username: ")
  10.     password1 = input("password: ")
  11.  
  12.     if username1 == username and password1 == password:
  13.         print("Successfully logged in")
  14.     elif username1 == username and password1 != password:
  15.         print("Username correct but password is incorrect")
  16.     elif password1 == password and username1 != username:
  17.         print("Password correct but username is incorrect")
  18.     elif username1 != username and password1 != password:
  19.         print("username and password incorrect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement