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