import getpass


def get_input_from_user(question: str, type: str = "input") -> str:
    """
    Get input from user
    :param question: The question to ask user
    :param type: The type of input
    :return: output from the user
    """
    get_input = input
    if type == "password":
        get_input = getpass.getpass
    while True:
        display_text_to_user = f"{question}:"
        answer = get_input(display_text_to_user)
        if answer is not None:
            break
    return answer