Skip to content

Instantly share code, notes, and snippets.

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