yes_no#

arte.contrib.yes_no.yes_no(question, default='yes')#

From: http://code.activestate.com/recipes/577058/ MIT license

Ask a yes/no question via input() and return their answer.

“question” is a string that is presented to the user. “default” is the presumed answer if the user just hits <Enter>.

It must be “yes” (the default), “no” or None (meaning an answer is required of the user).

The “answer” return value is one of “yes” or “no”.