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: code with ranking and indentation
Variant
Started at:
2026-08-04 20:43:37 (CDT)
Duration:
0s
Show/Hide answer
{
"python-ordered": [
{
"tag": "d1c4c560-953c-4465-8051-4dd83f009555",
"uuid": "b726d833-4013-4cb1-b44f-44c34dccaa88",
"final": false,
"index": 0,
"indent": 0,
"depends": [],
"ranking": 1,
"group_info": {
"tag": null,
"depends": null
},
"inner_html": "<pl-code language=\"python\">def my_sum(first, second):</pl-code>",
"distractor_for": null,
"initially_placed": false,
"ordering_feedback": null,
"distractor_feedback": null
},
{
"tag": "f27d753b-5835-438c-b240-425d125a306f",
"uuid": "ab1cc5c9-2065-4d64-9648-b79f036d7cbf",
"final": false,
"index": 1,
"indent": 1,
"depends": [],
"ranking": 2,
"group_info": {
"tag": null,
"depends": null
},
"inner_html": "<pl-code language=\"python\">sum = 0</pl-code>",
"distractor_for": null,
"initially_placed": false,
"ordering_feedback": null,
"distractor_feedback": null
},
{
"tag": "addfirst",
"uuid": "fb8b4590-8d47-4420-b869-4f8ba64c83ab",
"final": false,
"index": 2,
"indent": 1,
"depends": [],
"ranking": 3,
"group_info": {
"tag": null,
"depends": null
},
"inner_html": "<pl-code language=\"python\">sum += first</pl-code>",
"distractor_bin": "c57fcb31-7d61-4bb9-84bc-51aea607e2e3",
"distractor_for": null,
"initially_placed": false,
"ordering_feedback": null,
"distractor_feedback": null
},
{
"tag": "addsecond",
"uuid": "c4b973c7-dbc3-415c-a129-2775a8c4c49b",
"final": false,
"index": 3,
"indent": 1,
"depends": [],
"ranking": 3,
"group_info": {
"tag": null,
"depends": null
},
"inner_html": "<pl-code language=\"python\">sum += second</pl-code>",
"distractor_bin": "e50516c0-e7b7-43ef-9104-ce9e74072448",
"distractor_for": null,
"initially_placed": false,
"ordering_feedback": null,
"distractor_feedback": null
},
{
"tag": "f546526b-f3fa-4240-8deb-f8cbc97fc570",
"uuid": "c3defa0b-1430-45bd-a5a4-24da4fb376fc",
"final": false,
"index": 4,
"indent": 1,
"depends": [],
"ranking": 4,
"group_info": {
"tag": null,
"depends": null
},
"inner_html": "<pl-code language=\"python\">return sum</pl-code>",
"distractor_for": null,
"initially_placed": false,
"ordering_feedback": null,
"distractor_feedback": null
}
]
}