Advertisement
Guest User

Untitled

a guest
Apr 30th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. class Login:
  2.  
  3. user_id = input("USERNAME: ")
  4. pass_id = input("PASSWORD: ")
  5.  
  6. def __init__(self, username, password):
  7. self.user_id = username
  8. self.pass_id = password
  9.  
  10. def logCheck(self, username, password):
  11. if self.user_id == username and self.pass_id == password:
  12. print("LOGIN SUCCES!")
  13. else:
  14. print("LOGIN FAILURE!")
  15.  
  16. user_joel = Login("joel", "abc123")
  17. Login.logCheck(user_joel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement