def confirm(message=u'Confirm (y or n) '):
 assert isinstance(message, text_type)
 app = create_confirm_application(message)
 return run_application(app)

def confirm ( message = u'Confirm (y or n) ' ) : assert isinstance ( message , text_type ) app = create_confirm_application ( message ) return run_application ( app )
ask the user if they would like to perform the action parameters: question - the question you would like to ask the user to confirm .