users = {
"user1" : "password1",
"user2" : "password2",
"user3" : "password3"
}

def accept_login(users,user,password):
    
 if user in users.keys():
    if users[user]== password:
      return True   
    else: return False 
 else: return False   

           
if accept_login(users, "user1", "password1") :
  print("login successful!")
else :
  print("login failed...")


36c7ce3dcdbf73f3ad0ffcbe2d5bf677088eb6ff
<mask token>

<mask token>


def accept_login(users, user, password):
    if user in users.keys():
        if users[user] == password:
            return True
        else:
            return False
    else:
        return False


<mask token>

<mask token>


def accept_login(users, user, password):
    if user in users.keys():
        if users[user] == password:
            return True
        else:
            return False
    else:
        return False


if accept_login(users, 'user1', 'password1'):
    print('login successful!')
else:
    print('login failed...')

users = {'user1': 'password1', 'user2': 'password2', 'user3': 'password3'}


def accept_login(users, user, password):
    if user in users.keys():
        if users[user] == password:
            return True
        else:
            return False
    else:
        return False


if accept_login(users, 'user1', 'password1'):
    print('login successful!')
else:
    print('login failed...')

users = {
"user1" : "password1",
"user2" : "password2",
"user3" : "password3"
}

def accept_login(users,user,password):
    
 if user in users.keys():
    if users[user]== password:
      return True   
    else: return False 
 else: return False   

           
if accept_login(users, "user1", "password1") :
  print("login successful!")
else :
  print("login failed...")

