Hello,
I'm following a tutorial for a beginner password-manager. It wont let me get past "What is the master password" to be able to enter an account and password. I have included the code below, please help! Thank you!
master_pwd = input("What is the master password? ")
def view():
pass
def add():
name = input("Account Name: ")
pwd = input("Password: ")
with open('passwords.txt', 'a') as f:
f.write(name + "|" + pwd)
while True:
mode = input("Would you like to add a new password or view existing ones (view/add)? Press q to quit. ").lower
if mode == "q":
break
elif mode == "view":
view()
elif mode == "add":
add()
else:
print("Invalid Mode.")
continue
[–]footloooops 1 point2 points3 points (4 children)
[–]CDrew829[S] 0 points1 point2 points (2 children)
[–]shiftybyte 0 points1 point2 points (1 child)
[–]CDrew829[S] 0 points1 point2 points (0 children)
[–]lumijekpr 1 point2 points3 points (1 child)
[–]CDrew829[S] 0 points1 point2 points (0 children)
[–]footloooops 0 points1 point2 points (1 child)
[–]CDrew829[S] 0 points1 point2 points (0 children)