def confirm(question: str) -> bool:
    """Ask a confirmation to the user in the console.

    Args:
        - question: the question to ask the user.

    Returns:
        True if the user answered 'yes' or 'y', False otherwise.

    """
    input_ = input(question + " Enter (y)es or (n)o: ")
    return input_ == "yes" or input_ == "y"