Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created May 2, 2021 13:41
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
import getpass
database = {"aman.kharwal": "123456", "kharwal.aman": "654321"}
username = input("Enter Your Username : ")
password = getpass.getpass("Enter Your Password : ")
for i in database.keys():
if username == i:
while password != database.get(i):
password = getpass.getpass("Enter Your Password Again : ")
break
print("Verified")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment