You are viewing this question as it will appear in the manual grading interface. Return to the normal view when you are done.

Element pl-order-blocks: Externally graded python code with randomized parameters

Write a Python function that returns an odd number.

Drag from here:
  • 1
    a = 12
    
  • 1
    a = 3
    
  • 1
    a = 6
    
  • 1
    a = 7
    
  • 1
    def return_number():
    
  • 1
    return a
    
Construct your solution here:

Correct answer

Student view placeholder

In student views this area is used for assessment and score info.
Tools

Staff information

Question

Title:
Element pl-order-blocks: Externally graded python code with randomized parameters

Variant

Started at:
2026-09-19 10:15:03 (CDT)
Duration:
0s
Show/Hide answer
{
  "coding": [
    {
      "tag": "d20a4f41-3d5e-497b-bf65-4ed67ea09942",
      "uuid": "cfd39c9d-94a7-45c7-86c4-eab27499bb41",
      "final": false,
      "index": 0,
      "indent": -1,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"python\">def return_number():</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "a6ba03e5-652c-46c7-89fd-2ea1d0d85a91",
      "uuid": "a2529bde-f729-481b-87ca-d7e2fb34bc49",
      "final": false,
      "index": 1,
      "indent": -1,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"python\">a = 3</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "f04b24ee-9ea2-47c2-be57-3835d20c18f7",
      "uuid": "f19b8ac4-a72d-4c2a-9a9f-3eaf8f87fac6",
      "final": false,
      "index": 2,
      "indent": -1,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"python\">a = 6</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "ca84d89f-7039-4772-8abd-d15f88401027",
      "uuid": "e32312db-ffb2-4522-a0e5-e4a942e2f412",
      "final": false,
      "index": 3,
      "indent": -1,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"python\">a = 7</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "e235fa29-cf69-4448-9f46-d8f7546e36a3",
      "uuid": "d015f717-a66a-4e7a-be10-9292788bebfe",
      "final": false,
      "index": 4,
      "indent": -1,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"python\">a = 12</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    },
    {
      "tag": "f34fae38-66c8-41af-801f-79ebd8fe7c1f",
      "uuid": "afbb4d14-62cf-4b05-b6f8-74c815543a42",
      "final": false,
      "index": 5,
      "indent": -1,
      "depends": [],
      "ranking": -1,
      "group_info": {
        "tag": null,
        "depends": null
      },
      "inner_html": "<pl-code language=\"python\">return a</pl-code>",
      "distractor_for": null,
      "initially_placed": false,
      "ordering_feedback": null,
      "distractor_feedback": null
    }
  ]
}
History
dec frac
rad deg