Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Login:
- user_id = input("USERNAME: ")
- pass_id = input("PASSWORD: ")
- def __init__(self, username, password):
- self.username = username
- self.password = password
- def logCheck(self):
- if self.user_id == self.username and self.pass_id == self.password:
- print("LOGIN SUCCESS!")
- import game
- exit()
- else:
- print("LOGIN FAILED!")
- #call class again here
- user_joel = Login("joel", "abc123")
- Login.logCheck(user_joel)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement