How to give a password entry in Python code example Example: getpass import getpass x = getpass.getpass("Enter Password")