query_yes_no

lstchain.io.data_management.query_yes_no(question, default='yes')

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

Parameters:
question: str

question to the user

default: str - “yes”, “no” or None

resumed answer if the user just hits <Enter>. “yes” or “no” will set a default answer for the user None will require a clear answer from the user

Returns:
bool - True for “yes”, False for “no”