Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write a function that gets users username and password. Then it checks if the username exists in a pre-defined dictionary of the registered users. If
- write a function that gets users username and password. Then it checks if the username exists in a pre-defined dictionary of the registered users. If the username is found, then it checks for the corresponding password. If the password matches, then it returns (True) value. If the password does not match, it returns False. If the username does not exist in the dictionary, it asks for new username and password and informs them that user not found.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started