def confirm(question):
    """
    Ask the user if he really want something to happen.

    Args:
        question(str): What can happen

    Returns:
        (boolean): Confirmed or not
    """
    if FORCE_YES:
        return True

    while True:
        answer = input(question + ' <Yes|No>').lower()

        if answer == 'yes' or answer == 'y':
            confirmed = True
            break
        if answer == 'no' or answer == 'n':
            confirmed = False
            break

    return confirmed
def confirm ( question ) : if FORCE_YES : return True while True : answer = input ( question + ' <Yes|No>' ) . lower ( ) if answer == 'yes' or answer == 'y' : confirmed = True break if answer == 'no' or answer == 'n' : confirmed = False break return confirmed
Ask the user if he really want something to happen.

    Args:
        question(str): What can happen

    Returns:
        (boolean): Confirmed or not