python write paswoord linux terminal code example Example: getpass import getpass x = getpass.getpass("Enter Password")