How to prompt for password using python code example Example: getpass import getpass x = getpass.getpass("Enter Password")