Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- users = [
- ['kek', '123'],
- ['Chumok', '456'],
- ['Killer', '789'],
- ['Omws', '321'],
- ['Oops', '654'],
- ['Booby', '987']
- ]
- def check(login, password) :
- for i in range(len(users)):
- if users[i][0] == login and users[i][1] == password :
- return True
- return False
- def auth() :
- login = input('Send you login: ')
- password = input('Send you password: ')
- if check(login, password) :
- print("Welcome")
- else :
- print("Wrong login or password. Try again")
- auth()
- auth()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement