Jan-22-2021, 12:38 PM
(This post was last modified: Jan-22-2021, 12:38 PM by TechNitium.)
#getpass will hide what the person is typing during the password import getpass def new_entry(): #input the username and password and the website Website = str(input("Enter the website: ")) Username = str(input("Enter the username: ")) Password = getpass.getpass() #Menu to choose if you want to add, see or remove print(" *************************") print(" /$$ /$$ /$$$$$$ /$$$$$$$ \n| $$ | $$|_ $$_/| $$__ $$\n| $$ | $$ | $$ | $$ \ $$\n| $$$$$$$$ | $$ | $$ | $$\n| $$__ $$ | $$ | $$ | $$\n| $$ | $$ | $$ | $$ | $$\n| $$ | $$ /$$$$$$| $$$$$$$/\n|__/ |__/|______/|_______/ ") print("**************************") print ("1. See the list\n2. Add new entry") choice = (input("") if (choice) == (2): new_entry() #if you select option 2 it will call the new_entry code else: choice = (input("ERROR\nInvalid input: Please type agian\n") #Store this somewhereSo I get a syntax error on my if statement and I don't know why and if there is any why to improve this please tell me, I am trying to make a password saver.