a["correct_answer"]=next(question["answer"]forquestioninall_questionsifquestion["id"]==question_id)# all_questions can be replaced with topic_questions
a["correct_answer"]=next(question["answer"]forquestioninall_questionsifquestion["id"]==question_id)# all_questions can be replaced with topic_questions