def ask(message, options):<EOL>
while <NUM_LIT:1>:<EOL><INDENT>if os.environ.get('<STR_LIT>'):<EOL><INDENT>raise Exception(<EOL>'<STR_LIT>' %<EOL>message<EOL>)<EOL><DEDENT>response = input(message)<EOL>response = response.strip().lower()<EOL>if response not in options:<EOL><INDENT>print(<EOL>'<STR_LIT>'<EOL>'<STR_LIT:%s>' % (response, '<STR_LIT:U+002CU+0020>'.join(options))<EOL>)<EOL><DEDENT>else:<EOL><INDENT>return response<EOL><DEDENT><DEDENT>
Ask the message interactively, with the given possible responses