recipes.query_yes_no(question, default=None)[source]¶Ask a yes/no question via raw_input() and return the answer.
| Parameters: | question : str
default : str
|
|---|---|
| Returns: | answer : bool
|
See also
ActiveStateNotes
This code is a slightly modified version of recipe no. 577058 from ActiveState written by Trent Mick.