Question: 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

  1. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!