code: def confirm(statement):
      
      prompt = "{statement} [y/n]".format(statement=statement)
      answer = _ask(prompt, limited_to=["yes", "no", "y", "n"])
      return answer and answer.startswith("y")
docs: 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.