get user from get pass function python code example Example: getpass import getpass x = getpass.getpass("Enter Password")