When the code is run, it asks for a general password, but if the user made a slight mistake apparently it quits everything and the user has to restart it. As a eventual user I find it quit inconvenient.
I think in order to improve the user experience, here is my modest suggestion to make some changes in the password_manager.py file:
def run(a, b):
if a == b:
print('You\'re in')
choice = menu()
while choice != 'Q':
if choice == '1':
create()
if choice == '2':
find_accounts()
if choice == '3':
find()
else:
choice = menu()
else:
print('no luck')
restart = input('would you like to try again (y/n): ')
if restart == 'y':
run(a, b)
else:
quit()
run(passw, secret)
When the code is run, it asks for a general password, but if the user made a slight mistake apparently it quits everything and the user has to restart it. As a eventual user I find it quit inconvenient. I think in order to improve the user experience, here is my modest suggestion to make some changes in the password_manager.py file: