def yes_no_dialog(prompt: str) -> bool:
    """Return true/false based on prompt string and Y/y or N/n response."""
    while True:
        print()
        print(prompt)
        print()

        s = input("Y/n to confirm, N/n to reject >")
        if s in ("Y", "y"):
            return True

        if s in ("N", "n"):
            return False