I want the if statement to correctly compare what is in the list to what the input is in the enter_password variable.
user_password = []
password = input("Enter what you would like your password to be. \n ENTER: ")
user_password.append(password)
print(f"Password created! Your password is: {user_password}")
enter_password = input("Enter password: ")
if enter_password == user_password:
print("Welcome")
else:
print(f"{user_password} is wrong password")
Aucun commentaire:
Enregistrer un commentaire