pygeek_stellar/utils/user_input.py
def yes_or_no_input(msg):
    """
    This methods should be used to request an Yes/No input from the user. This
    method will not return until the user inputs a valid answer (USER_INPUT_YES or
    USER_INPUT_NO).
    :param str msg: Message to be displayed to the user.
    :return: Returns USER_INPUT_YES if the answer is affirmative and USER_INPUT_NO otherwise.
    :rtype: str
    """
    full_msg = '{} ({}/{})'.format(msg, USER_INPUT_YES, USER_INPUT_NO)
    answer = safe_input(full_msg).lower()
    while answer not in [USER_INPUT_YES, USER_INPUT_NO]:
        answer = safe_input(full_msg).lower()
    return answer

    This methods should be used to request an Yes/No input from the user. This
    method will not return until the user inputs a valid answer (USER_INPUT_YES or
    USER_INPUT_NO).
    :param str msg: Message to be displayed to the user.
    :return: Returns USER_INPUT_YES if the answer is affirmative and USER_INPUT_NO otherwise.
    :rtype: str
    
This methods should be used to request an Yes/No input from the user. This
method will not return until the user inputs a valid answer (USER_INPUT_YES or
USER_INPUT_NO).
This methods should be used to request an Yes / No input from the user . This method will not return until the user inputs a valid answer ( USER_INPUT_YES or USER_INPUT_NO ) .
def yes_or_no_input(msg):
    full_msg = '{} ({}/{})'.format(msg, USER_INPUT_YES, USER_INPUT_NO)
    answer = safe_input(full_msg).lower()
    while answer not in [USER_INPUT_YES, USER_INPUT_NO]:
        answer = safe_input(full_msg).lower()
    return answer
def yes_or_no_input ( msg ) : full_msg = '{} ({}/{})' . format ( msg , USER_INPUT_YES , USER_INPUT_NO ) answer = safe_input ( full_msg ) . lower ( ) while answer not in [ USER_INPUT_YES , USER_INPUT_NO ] : answer = safe_input ( full_msg ) . lower ( ) return answer
This methods should be used to request an Yes/No input from the user.
This methods should be used to request an Yes / No input from the user .
"""
    This methods should be used to request an Yes/No input from the user. This
    method will not return until the user inputs a valid answer (USER_INPUT_YES or
    USER_INPUT_NO).
    :param str msg: Message to be displayed to the user.
    :return: Returns USER_INPUT_YES if the answer is affirmative and USER_INPUT_NO otherwise.
    :rtype: str
    """
Returns USER_INPUT_YES if the answer is affirmative and USER_INPUT_NO otherwise.
Returns USER_INPUT_YES if the answer is affirmative and USER_INPUT_NO otherwise .
str
msg
Message to be displayed to the user.
Message to be displayed to the user .