Advertisement
Guest User

Untitled

a guest
Feb 17th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. users = [
  2.             ['kek', '123'],
  3.             ['Chumok', '456'],
  4.             ['Killer', '789'],
  5.             ['Omws', '321'],
  6.             ['Oops', '654'],
  7.             ['Booby', '987']
  8.         ]
  9.        
  10. def check(login, password) :
  11.     for i in range(len(users)):
  12.         if users[i][0] == login and users[i][1] == password :
  13.             return True
  14.            
  15.     return False
  16.  
  17. def auth() :
  18.     login = input('Send you login: ')
  19.     password = input('Send you password: ')
  20.    
  21.     if check(login, password) :
  22.         print("Welcome")
  23.     else :
  24.         print("Wrong login or password. Try again")
  25.         auth()
  26.        
  27. auth()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement