def confirm_prompt(question: str, yes_by_default = True) -> bool:
    """
    Shows a yes/no question.

    example:

        >>> reply = confirm_prompt("Are you sure?")
        >>> print(reply)

    args:
        yes_by_default (bool) : if True just hitting return equals yes.

    returns:
        bool : True if ansered with yes. False if answerded with no.
    """
    replies_prompt = "y/n"
    replies_values = ["y", "n"]
    yes = ("y")
    if yes_by_default: 
        replies_values.append("")
        replies_prompt = "Y/n"
        yes = ("", "y")
    reply = None
    while reply not in ("", "y", "n"):
        reply = input(f"{question} ({replies_prompt}): ").lower()
    return (reply in yes)