python hide password input code example Example: getpass import getpass x = getpass.getpass("Enter Password")