login-page

i Have a problem where my while loop doesn't consider the second condition

While loop doesn't consider the second condition Question: def login(): usern = "" pwd = "" logged = False while str(usern) not in keys and str(pwd) not in value: while str(usern) not in keys: usern = input("please enter Username: ") if usern not in keys: print("Incorrect username!") pwd = input("Please enter your password!: ") if …

Total answers: 2