def respond_from_question(self, question, user_question, importance):
        """Copy the answer given in `question` to the logged in user's
        profile.

        :param question: A :class:`~.Question` instance to copy.
        :param user_question: An instance of :class:`~.UserQuestion` that
                              corresponds to the same question as `question`.
                              This is needed to retrieve the answer id from
                              the question text answer on question.
        :param importance: The importance to assign to the response to the
                           answered question.
        """
        option_index = user_question.answer_text_to_option[
            question.their_answer
        ].id
        self.respond(question.id, [option_index], [option_index], importance)
def respond_from_question ( self , question , user_question , importance ) : option_index = user_question . answer_text_to_option [ question . their_answer ] . id self . respond ( question . id , [ option_index ] , [ option_index ] , importance )
Copy the answer given in `question` to the logged in user's
        profile.

        :param question: A :class:`~.Question` instance to copy.
        :param user_question: An instance of :class:`~.UserQuestion` that
                              corresponds to the same question as `question`.
                              This is needed to retrieve the answer id from
                              the question text answer on question.
        :param importance: The importance to assign to the response to the
                           answered question.