<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def confirm(statement):
 """Ask the user for confirmation about the specified statement. Args: statement (unicode):
 statement to ask the user confirmation about. Returns: bool: whether or not specified statement was confirmed. """

    prompt = "{statement} [y/n]".format(statement=statement)
    answer = _ask(prompt, limited_to=["yes", "no", "y", "n"])
    return answer and answer.startswith("y")