Question: Can you do this in PYTHON Question: You have an uncompleted Quiz5.py file. Download the file and fill in the missing parts. Do not delete

 Can you do this in PYTHON Question: You have an uncompletedQuiz5.py file. Download the file and fill in the missing parts. Do

Can you do this in PYTHON

Question: You have an uncompleted Quiz5.py file. Download the file and fill in the missing parts. Do not delete any part of the code. Otherwise it won't work. You have a main function that checks the input then directs the user to either sign up or sign in, or terminates the program. Dicti() function creates the keys for that number of users in txt. Define the subkeys as well as the dictionary itself using keys and subkeys. You have some users that are signed up to your app, then sign in to reach the content. First define a function named 'signup() for the users to sign up. Save user's information to a txt file named userinfo.txt' as well as a dictionary named 'dict.txt'. After sign up process is completed, users should sign in with their email and password. Define a function named signin(). Email should be in our database. If user doesn't remember his/her password, user types 'Forgot Password' and system generates a random password and updates the user password on the dictionary. You have a new user Sumaiya Holden,sum@holden.com,9999. 1. Sign her up. 2. Sign her in 3. Then unfortunately one of your existing users, 'Carlo Hebert' forgot his password. Change his password only on dictionary txt ans 'users' list. File and dictionary should look like this: After steps 1 and 2: userinfo - Notepad File Edit Format View Help Wilbur Benson,wilbur@benson.com, 1234, uu Carlo Hebert, carlo@hobert.com, 2345,00 Ebrahim Mac, ebr@mac.com, 7654, yy Sumaiya Holden, sum@holden.com, 9999 After all steps: dict - Notepad File Edit Format View Help dict_items([('useri', {'name': 'Wilbur Benson', 'email': 'Wilbur@benson.com', 'password": "1234"}), ('user2', ('name': 'Carlo Hebert', 'email': 'carlo@hobert.com', 'password: 'ec2958']), ('user3, ('name': 'Ebrahim Mac', 'email': 'ebr@mac.com', 'password": "7654'}, ('usera, ('name': 'Sumaiya Holden', 'email': 'sum@holden.com', 'password": "9999"})]) Notes: You have to write comments to your code. You should open your txt file in different modes to read, write or append. Password is generated randomly. Your passwords will be different than the example. Possible Output 1: Press a to Sign in or b to sign up b Enter your name: Sumaiya Holden Enter your email: sum@holden.com Enter a password: 9999 You have successfully signed up! Now please sign in to continue... Possible Output 2: Press a to Sign in or b to sign up a Enter your email to sign in : sum@holden.com Enter a password to sign in: or type forgot password to get a new password9999 Sign in completed! Welcome Possible Output 3: Press a to Sign in or b to sign up a Enter your email to sign in : carlo@hobert.com Enter a password to sign in or type forgot password to get a new password forgot Your new password is: ec295B Original userinfo.txt includes: Wilbur Benson, wilbur@benson.com 1234 Carlo Hebert,carlo@hobert.com,2345 Ebrahim Mac,ebr@mac.com, 7654

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!