Hm but I do not want chatty answers - only the Math question and python code so I can see that it actually created the questions with python.
I tried that now with gpt-5.2. I asked it to create 6 questions. It did. But looking at the code part, I can only see a one liner, so it did not really use python for all questions. Seems like only for one question and not even the whole of it.
Any idea why? I thought it would use more python. Not just this:
code="import sympy as sp\nx=sp.Symbol('x')\nsp.expand(4*(x+2)*(x-1))\n",
Whole output:
[ResponseCodeInterpreterToolCall(id='….', code="import sympy as sp\nx=sp.Symbol('x')\nsp.expand(4*(x+2)*(x-1))\n", container_id='….', outputs=None, status='completed', type='code_interpreter_call'), ResponseOutputMessage(id='….', content=[ResponseOutputText(annotations=[], text='{\n "questions": [\n {\n "question_type": "MULTIPLE_CHOICE",\n "title": "Find equivalent expressions for the quadratic function below. Select ALL that apply.",\n "content": "Let f(x) model the height of a toy rocket (in meters) after x seconds: f(x) = 4x² + 4x - 8. (Here, c = 2.)",\n "points": 100,\n "options": [\n "4(x² + x - 2)",\n "4(x + 2)(x - 1)",\n "2(2x² + 2x - 4)",\n "4(x - 2)(x + 1)",\n "4x(x + 1) - 8"\n ],\n "correct_indices": [\n 0,\n 1,\n 2,\n 4\n ]\n },\n {\n "question_type": "TABLE_YES_NO",\n "title": "Is the given expression equal to 4x² + 20x - 24?",\n "content": "A company’s profit (in thousands of dollars) is modeled by P(x) = 4x² + 20x - 24, where x is the number of ads purchased. Select Yes or No for each expression.",\n "points": 100,\n "rows": [\n {\n "statement": "4(x² + 5x - 6)",\n "is_true": true\n },\n {\n "statement": "4(x + 6)(x - 1)",\n "is_true": true\n },\n {\n "statement": "4(x + 3)(x + 2)",\n "is_true": false\n },\n {\n "statement": "2(2x² + 10x - 12)",\n "is_true": true\n },\n {\n "statement": "4x(x + 5) - 24",\n "is_true": true\n }\n ]\n },\n {\n "question_type": "MULTIPLE_CHOICE",\n "title": "Find equivalent expressions for the quadratic function below. Select ALL that apply.",\n "content": "A rectangular garden has area modeled by A(t) = 3t² - 21t - 24 (in square meters), where t is the number of meters added to one side. (Here, c = 8.)",\n "points": 100,\n "options": [\n "3(t² - 7t - 8)",\n "3(t - 8)(t + 1)",\n "3(t - 1)(t + 8)",\n "3(t - 4)(t - 2)",\n "t(3t - 21) - 24"\n ],\n "correct_indices": [\n 0,\n 1\n ]\n },\n {\n "question_type": "TABLE_YES_NO",\n "title": "Is the given expression equal to n² - n - 20?",\n "content": "A school club tracks its balance (in dollars) with B(n) = n² - n - 20, where n is the number of fundraiser items sold. Select Yes or No for each expression.",\n "points": 100,\n "rows": [\n {\n "statement": "(n - 5)(n + 4)",\n "is_true": true\n },\n {\n "statement": "(n + 4)(n - 5)",\n "is_true": true\n },\n {\n "statement": "(n - 4)(n + 5)",\n "is_true": false\n },\n {\n "statement": "(n - 20)(n + 1)",\n "is_true": false\n }\n ]\n },\n {\n "question_type": "MULTIPLE_CHOICE",\n "title": "Find the expressions that are NOT equivalent to the quadratic expression below for all values of x. Select ALL that apply.",\n "content": "A ball’s vertical position is modeled by h(x) = 6x² - 30x + 96 (in centimeters), where x is time in seconds. (Here, c = 16.)",\n "points": 100,\n "options": [\n "6(x² - 5x + 16)",\n "6(x - 8)(x - 2)",\n "3(2x² - 10x + 32)",\n "6(x - 4)(x - 4)",\n "6x(x - 5) + 96"\n ],\n "correct_indices": [\n 1,\n 3\n ]\n },\n {\n "question_type": "MULTIPLE_CHOICE",\n "title": "Which ordered pairs (a, b) make the following equation true for all values of x. Select ALL that apply.",\n "content": "A model for total cost is written as (x + a)(x + b) = x² + 10x + 16. (Here, c = 8.)",\n "points": 100,\n "options": [\n "a = 1, b = 16",\n "a = 2, b = 8",\n "a = 4, b = 4",\n "a = 8, b = 2",\n "a = 16, b = 1"\n ],\n "correct_indices": [\n 1,\n 3\n ]\n }\n ]\n}', type='output_text', logprobs=[])], role='assistant', status='completed', type='message')]