Skip to content

Instantly share code, notes, and snippets.

@master-stm
Created November 13, 2019 15:04
Show Gist options
  • Select an option

  • Save master-stm/5a6fca1c1192258dea4f94b2de552c54 to your computer and use it in GitHub Desktop.

Select an option

Save master-stm/5a6fca1c1192258dea4f94b2de552c54 to your computer and use it in GitHub Desktop.
a quick python code to check username and password
username = "master stm"
password = "leader.3"
user_input = input("enter username: ")
if user_input == username :
user_password = input("enter password: ")
if user_password == password :
print(f"Welcome Back {username}")
else:
print("password is not recognized")
else:
print("username is not recognized")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment