Wednesday, March 23, 2022

User name and Password in Database in Python

 database=[
['Madan','1111'],
['Uday','2222'],
['Arvind','3333'],
['Neeraj','4444']
]
username=input('User name:')
password=input('Password:')
if[username,password] in database:
    print('Access granted')
else:
    print('Access Denied')














No comments:

Post a Comment

MCQ QUESTIONS

Loading…