My assessment is to construct a password vault, with basic python lists, functions while loops, etc, but am having issues on the part where the user actually inputs passwords for their apps. The first problem is when they ask to see their passwords and don't have any it should say "you have nothing stored"
, it says this but don't stop repeating it, and also wondered if I could get some help on completing the rest of it. here is what I would like this part of the code to look like in terms of using it.
Press: 1) find your existing passwords 2) save a new password for your apps 3) see a summary of your password locker 4) exit password locker successfully 2
Name of website: Facebook
Username of site: bob91
password of site: bob95
would you like to add another app: yes
Name of website: Instagram
Username of site: albert91
password of site: albert95
would you like to add another app: no
Press: 1) find your existing passwords 2) save a new password for your apps 3) see a summary of your password locker 4) exit password locker successfully 1 Which app password would you like to access: Facebook Facebook
username: bob91
password: bob95
-------------------------------------------------- My actual code right now -->
vault_apps = []
app_name = ""
def locker_menu_func():
print('''You have opened the locker,
Please select what you would like to do,''')
while True:
locker_menu_var = input('''Press: \n1) find your existing passwords \n2) save a new password for your apps
3) see a summary of your password locke \n4) exit password locker successfully
---------------------------------------------------------------------------------
''')
print('''----------------------------------------------------------------''')
if locker_menu_var == "1":
while len(vault_apps) < 1:
print('''you have nothing stored''')
break
break
elif locker_menu_var == "2":
app_name = input('''
What is the name of the website/app your are adding?
''')
app_password = input('''What is the password of your {} account?
'''.format(app_name))
vault_apps.append([app_name, app_password])
while True: another_app = input('''Would you like to add another app to your password locker?''')
if another_app in {"Y", "YES"}:
print("okay")
break
break
locker_menu_func()