I have a password manager and it doesn't work correctly [closed]
Solution 1:
This line:
i = input("what do you want to do? generate password(gen)/add password(add)/view your passwords(view) : ").lower
Should be:
i = input("what do you want to do? generate password(gen)/add password(add)/view your passwords(view) : ").lower()
.lower
needs to be .lower()
because you need to apply the .lower()
method on the string returning from the input
function so you have to call the method using parentheses, but without parentheses, you don't apply the method on the str
object instead you return the method itself you can see this if you try to print i
with .lower
:
<built-in method lower of str object at 0x00000259775C3D70>